Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Removed the message about creating a folder in select folder fragment #787

Merged
merged 1 commit into from
Jun 8, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ class SelectFolderFragment : FileListFragment() {

override fun onViewCreated(view: View, savedInstanceState: Bundle?) {
userDrive = selectFolderViewModel.userDrive
setNoFilesLayout = SetNoFilesLayout()
super.onViewCreated(view, savedInstanceState)

folderName = if (folderId == ROOT_ID) selectFolderViewModel.currentDrive?.name ?: "/" else navigationArgs.folderName
Expand Down Expand Up @@ -99,4 +100,13 @@ class SelectFolderFragment : FileListFragment() {
private fun onBackPressed() {
if (folderId == ROOT_ID) requireActivity().finish() else Utils.ignoreCreateFolderBackStack(findNavController(), true)
}

private inner class SetNoFilesLayout : () -> Unit {
override fun invoke() {
noFilesLayout.setup(
title = R.string.noFilesDescriptionSelectFolder,
initialListView = fileRecyclerView
)
}
}
}
1 change: 1 addition & 0 deletions app/src/main/res/values-de/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -509,6 +509,7 @@
<string name="noDriveTitle">Sie haben kDrive noch nicht!</string>
<string name="noFilesDescription">Dieser Ordner ist leer. Klicken Sie auf den +Button, um hier Dateien hinzuzufügen.</string>
<string name="noFilesDescriptionNoNetwork">Die Informationen des Ordners können nicht wiederhergestellt werden. Bitte überprüfen Sie Ihre Netzwerkverbindung oder versuchen Sie es später noch einmal.</string>
<string name="noFilesDescriptionSelectFolder">Dieser Ordner ist leer.</string>
<string name="noMediaFolderTitle">Keine Medienordner vorhanden</string>
<string name="noSelectMediaFolders">Kein Ordner ausgewählt</string>
<string name="noSyncFolderNotificationDescription">Klicken Sie hier, um die zu synchronisierenden Ordner zu konfigurieren</string>
Expand Down
1 change: 1 addition & 0 deletions app/src/main/res/values-es/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -509,6 +509,7 @@
<string name="noDriveTitle">¡Todavía no tienes kDrive!</string>
<string name="noFilesDescription">Esta carpeta está vacía. Pulsa la tecla + para agregar archivos aquí.</string>
<string name="noFilesDescriptionNoNetwork">No se puede recuperar la información de la carpeta. Comprueba tu conexión de red o vuelve a intentarlo más tarde.</string>
<string name="noFilesDescriptionSelectFolder">Esta carpeta está vacía.</string>
<string name="noMediaFolderTitle">No hay carpetas de medios disponibles</string>
<string name="noSelectMediaFolders">No hay carpeta seleccionada</string>
<string name="noSyncFolderNotificationDescription">Pulse aquí para configurar las carpetas a sincronizar</string>
Expand Down
1 change: 1 addition & 0 deletions app/src/main/res/values-fr/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -509,6 +509,7 @@
<string name="noDriveTitle">Vous n’avez pas encore de kDrive !</string>
<string name="noFilesDescription">Ce dossier est vide. Appuyez sur le bouton + pour ajouter des fichiers ici.</string>
<string name="noFilesDescriptionNoNetwork">Impossible de récupérer les informations du dossier. Veuillez vérifier votre connexion réseau ou réessayez ultérieurement.</string>
<string name="noFilesDescriptionSelectFolder">Ce dossier est vide.</string>
<string name="noMediaFolderTitle">Aucun dossier de médias disponible</string>
<string name="noSelectMediaFolders">Aucun dossier sélectionné</string>
<string name="noSyncFolderNotificationDescription">Cliquez-ici pour configurer les dossiers à synchroniser</string>
Expand Down
1 change: 1 addition & 0 deletions app/src/main/res/values-it/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -509,6 +509,7 @@
<string name="noDriveTitle">Non hai ancora kDrive!</string>
<string name="noFilesDescription">La cartella è vuota. Selezionare il pulsante + per aggiungere file.</string>
<string name="noFilesDescriptionNoNetwork">Impossibile recuperare le informazioni della cartella. Verificare la connessione di rete o riprovare più tardi.</string>
<string name="noFilesDescriptionSelectFolder">La cartella è vuota.</string>
<string name="noMediaFolderTitle">Nessuna cartella media disponibile</string>
<string name="noSelectMediaFolders">Nessuna cartella selezionata</string>
<string name="noSyncFolderNotificationDescription">Clicca qui per configurare le cartelle da sincronizzare</string>
Expand Down
1 change: 1 addition & 0 deletions app/src/main/res/values/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -523,6 +523,7 @@
<string name="noDriveTitle">You don’t have a kDrive yet!</string>
<string name="noFilesDescription">This folder is empty. Click the + button to add files here.</string>
<string name="noFilesDescriptionNoNetwork">Unable to retrieve information from the folder. Please check your network connection or try again later.</string>
<string name="noFilesDescriptionSelectFolder">This folder is empty.</string>
<string name="noMediaFolderTitle">No media folders available</string>
<string name="noSelectMediaFolders">No folder selected</string>
<string name="noSyncFolderNotificationDescription">Click here to configure the folders to synchronize</string>
Expand Down