// Make it so.
startActivity(genericFileManagerIntent);
- } catch (Exception gengericFileManagerException) {
+ } catch (Exception genericFileManagerException) {
// Try an alternate file manager.
try {
// Create an alternate file manager intent.
updateSaveButton(currentBookmarkName, currentUrl, currentFolderDatabaseId, currentDisplayOrder)
}
- override fun onNothingSelected(parent: AdapterView<*>?) {
+ override fun onNothingSelected(parent: AdapterView<*>) {
// Do nothing.
}
}
}
})
- // Update the save button if the parent folder changes.
- parentFolderSpinner.onItemSelectedListener = object: OnItemSelectedListener {
- override fun onItemSelected(parent: AdapterView<*>?, view: View, position: Int, id: Long) {
- // Update the save button.
- updateSaveButton(bookmarksDatabaseHelper, currentFolderName, currentParentFolderDatabaseId, currentDisplayOrder)
- }
+ // Wait to set the on item selected listener until the spinner has been inflated. Otherwise the dialog will crash on restart.
+ parentFolderSpinner.post {
+ // Update the save button if the parent folder changes.
+ parentFolderSpinner.onItemSelectedListener = object: OnItemSelectedListener {
+ override fun onItemSelected(parent: AdapterView<*>, view: View, position: Int, id: Long) {
+ // Update the save button.
+ updateSaveButton(bookmarksDatabaseHelper, currentFolderName, currentParentFolderDatabaseId, currentDisplayOrder)
+ }
- override fun onNothingSelected(parent: AdapterView<*>?) {
- // Do nothing.
+ override fun onNothingSelected(parent: AdapterView<*>) {
+ // Do nothing.
+ }
}
}
<string name="clear_history">Verlauf löschen</string>
<string name="open">Öffnen</string>
<string name="downloads">Downloads</string>
+ <string name="no_file_manager_detected">Das System konnte keinen kompatiblen Datei-Manager ermitteln.</string>
<string name="settings">Einstellungen</string>
<string name="import_export">Importieren/Exportieren</string>
<string name="logcat">Logcat</string>
<string name="previous">Vorheriges</string>
<string name="next">Nächstes</string>
+ <!-- Open Dialog. -->
+ <string name="file_is_mht">Die Datei ist ein MHT-Web-Archiv.</string>
+ <string name="mht_checkbox_explanation">Manchmal müssen MIME-gekapselte HTML-Web-Archive (MHT) manuell festgelegt werden, um korrekt geöffnet zu werden.</string>
+
<!-- Save Dialogs. -->
<string name="save_url">URL speichern</string>
<string name="save_archive">Archiv speichern</string>
<string name="clear_history">Borrar historial</string>
<string name="open">Abrir</string>
<string name="downloads">Descargas</string>
+ <string name="no_file_manager_detected">El sistema no puede detectar un gestor de archivos compatible.</string>
<string name="settings">Configuración</string>
<string name="import_export">Importar/Exportar</string>
<string name="logcat">Logcat</string>
<string name="previous">Anterior</string>
<string name="next">Siguiente</string>
+ <!-- Open Dialog. -->
+ <string name="file_is_mht">El archivo es un archivo de web MHT.</string>
+ <string name="mht_checkbox_explanation">A veces se necesita especificar manualmente los archivos web MIME Encapsulated HTML (MHT) para que se abran correctamente.</string>
+
<!-- Save Dialogs. -->
<string name="save_url">Guardar URL</string>
<string name="save_archive">Guardar archivo</string>
<string name="clear_history">Elimina cronologia</string>
<string name="open">Apri</string>
<string name="downloads">Download</string>
+ <string name="no_file_manager_detected">Il sistema non riesce a trovare un file manager compatibile.</string>
<string name="settings">Impostazioni</string>
<string name="import_export">Importa/Esporta</string>
<string name="logcat">Logcat</string>
<string name="previous">Precedente</string>
<string name="next">Successivo</string>
+ <!-- Open Dialog. -->
+ <string name="file_is_mht">Questo file è un archivio web MHT.</string>
+ <string name="mht_checkbox_explanation">Talvolta gli archivi web del tipo MIME Encapsulated HTML (MHT) devono essere specificati manualmente per essere aperti correttamente.</string>
+
<!-- Save Dialogs. -->
<string name="save_url">Salva URL</string>
<string name="save_archive">Salva Archivio</string>
<string name="clear_history">Очистить историю</string>
<string name="open">Открыть</string>
<string name="downloads">Загрузки</string>
+ <string name="no_file_manager_detected">Система не может обнаружить совместимый файловый менеджер.</string>
<string name="settings">Настройки</string>
<string name="import_export">Импорт/Экспорт</string>
<string name="logcat">Logcat</string>
<string name="previous">Предыдущий</string>
<string name="next">Следующий</string>
+ <!-- Open Dialog. -->
+ <string name="file_is_mht">Файл представляет собой веб-архив MHT.</string>
+ <string name="mht_checkbox_explanation">Иногда для корректного открытия веб-архивов MIME Encapsulated HTML (MHT) необходимо указать вручную.</string>
+
<!-- Save Dialogs. -->
<string name="save_url">Сохранить URL</string>
<string name="save_archive">Сохранить архив</string>