adding a new Settings toggle for showing images in the highest possible quality
This commit is contained in:
parent
03682401e1
commit
fe186bcabc
|
@ -67,6 +67,7 @@ class SettingsActivity : SimpleActivity() {
|
|||
setupShowInfoBubble()
|
||||
setupEnablePullToRefresh()
|
||||
setupAllowZoomingImages()
|
||||
setupShowHighestQuality()
|
||||
setupOneFingerZoom()
|
||||
setupAllowInstantChange()
|
||||
setupShowExtendedDetails()
|
||||
|
@ -84,7 +85,7 @@ class SettingsActivity : SimpleActivity() {
|
|||
private fun setupSectionColors() {
|
||||
val adjustedPrimaryColor = getAdjustedPrimaryColor()
|
||||
arrayListOf(visibility_label, videos_label, thumbnails_label, scrolling_label, fullscreen_media_label, security_label,
|
||||
file_operations_label, extended_details_label, bottom_actions_label, recycle_bin_label).forEach {
|
||||
file_operations_label, deep_zoomable_images_label, extended_details_label, bottom_actions_label, recycle_bin_label).forEach {
|
||||
it.setTextColor(adjustedPrimaryColor)
|
||||
}
|
||||
}
|
||||
|
@ -337,10 +338,24 @@ class SettingsActivity : SimpleActivity() {
|
|||
|
||||
private fun setupAllowZoomingImages() {
|
||||
settings_allow_zooming_images.isChecked = config.allowZoomingImages
|
||||
updateDeepZoomToggleButtons()
|
||||
settings_allow_zooming_images_holder.setOnClickListener {
|
||||
settings_allow_zooming_images.toggle()
|
||||
config.allowZoomingImages = settings_allow_zooming_images.isChecked
|
||||
settings_one_finger_zoom_holder.beVisibleIf(config.allowZoomingImages)
|
||||
updateDeepZoomToggleButtons()
|
||||
}
|
||||
}
|
||||
|
||||
private fun updateDeepZoomToggleButtons() {
|
||||
settings_one_finger_zoom_holder.beVisibleIf(config.allowZoomingImages)
|
||||
settings_show_highest_quality_holder.beVisibleIf(config.allowZoomingImages)
|
||||
}
|
||||
|
||||
private fun setupShowHighestQuality() {
|
||||
settings_show_highest_quality.isChecked = config.showHighestQuality
|
||||
settings_show_highest_quality_holder.setOnClickListener {
|
||||
settings_show_highest_quality.toggle()
|
||||
config.showHighestQuality = settings_show_highest_quality.isChecked
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -369,7 +369,9 @@ class PhotoFragment : ViewPagerFragment() {
|
|||
|
||||
view.subsampling_view.apply {
|
||||
setMaxTileSize(4096)
|
||||
setMinimumTileDpi(getMinTileDpi())
|
||||
if (!context!!.config.showHighestQuality) {
|
||||
setMinimumTileDpi(getMinTileDpi())
|
||||
}
|
||||
background = ColorDrawable(Color.TRANSPARENT)
|
||||
setBitmapDecoderFactory { PicassoDecoder(path, Picasso.get(), rotation) }
|
||||
setRegionDecoderFactory { PicassoRegionDecoder() }
|
||||
|
|
|
@ -388,4 +388,8 @@ class Config(context: Context) : BaseConfig(context) {
|
|||
var lastBinCheck: Long
|
||||
get() = prefs.getLong(LAST_BIN_CHECK, 0L)
|
||||
set(lastBinCheck) = prefs.edit().putLong(LAST_BIN_CHECK, lastBinCheck).apply()
|
||||
|
||||
var showHighestQuality: Boolean
|
||||
get() = prefs.getBoolean(SHOW_HIGHEST_QUALITY, false)
|
||||
set(showHighestQuality) = prefs.edit().putBoolean(SHOW_HIGHEST_QUALITY, showHighestQuality).apply()
|
||||
}
|
||||
|
|
|
@ -61,6 +61,7 @@ const val SHOW_RECYCLE_BIN_AT_FOLDERS = "show_recycle_bin_at_folders"
|
|||
const val ALLOW_ZOOMING_IMAGES = "allow_zooming_images"
|
||||
const val WAS_SVG_SHOWING_HANDLED = "was_svg_showing_handled"
|
||||
const val LAST_BIN_CHECK = "last_bin_check"
|
||||
const val SHOW_HIGHEST_QUALITY = "show_highest_quality"
|
||||
|
||||
// slideshow
|
||||
const val SLIDESHOW_INTERVAL = "slideshow_interval"
|
||||
|
|
File diff suppressed because it is too large
Load Diff
|
@ -163,6 +163,8 @@
|
|||
<string name="do_extra_check">قم بإجراء فحص إضافي لتجنب إظهار الملفات التالفة</string>
|
||||
<string name="show_at_bottom">Show some action buttons at the bottom of the screen</string>
|
||||
<string name="show_recycle_bin">Show the Recycle Bin at the folders screen</string>
|
||||
<string name="deep_zoomable_images">Deep zoomable images</string>
|
||||
<string name="show_highest_quality">Show images in the highest possible quality</string>
|
||||
|
||||
<!-- Setting sections -->
|
||||
<string name="thumbnails">المصغرات</string>
|
||||
|
|
|
@ -159,6 +159,8 @@
|
|||
<string name="do_extra_check">Do an extra check to avoid showing invalid files</string>
|
||||
<string name="show_at_bottom">Show some action buttons at the bottom of the screen</string>
|
||||
<string name="show_recycle_bin">Show the Recycle Bin at the folders screen</string>
|
||||
<string name="deep_zoomable_images">Deep zoomable images</string>
|
||||
<string name="show_highest_quality">Show images in the highest possible quality</string>
|
||||
|
||||
<!-- Setting sections -->
|
||||
<string name="thumbnails">Thumbnails</string>
|
||||
|
|
|
@ -159,6 +159,8 @@
|
|||
<string name="do_extra_check">Fer una verificació addicional per evitar que es mostrin fitxers no vàlids</string>
|
||||
<string name="show_at_bottom">Mostra alguns botons d\'acció a la part inferior de la pantalla</string>
|
||||
<string name="show_recycle_bin">Mostra la paperera de reciclatge a la pantalla de carpetes</string>
|
||||
<string name="deep_zoomable_images">Deep zoomable images</string>
|
||||
<string name="show_highest_quality">Show images in the highest possible quality</string>
|
||||
|
||||
<!-- Setting sections -->
|
||||
<string name="thumbnails">Miniatures</string>
|
||||
|
|
|
@ -159,6 +159,8 @@
|
|||
<string name="do_extra_check">Do an extra check to avoid showing invalid files</string>
|
||||
<string name="show_at_bottom">Show some action buttons at the bottom of the screen</string>
|
||||
<string name="show_recycle_bin">Show the Recycle Bin at the folders screen</string>
|
||||
<string name="deep_zoomable_images">Deep zoomable images</string>
|
||||
<string name="show_highest_quality">Show images in the highest possible quality</string>
|
||||
|
||||
<!-- Setting sections -->
|
||||
<string name="thumbnails">Thumbnails</string>
|
||||
|
|
|
@ -159,6 +159,8 @@
|
|||
<string name="do_extra_check">Tjek en ekstra gang for at undgå visning af ugyldige filer</string>
|
||||
<string name="show_at_bottom">Show some action buttons at the bottom of the screen</string>
|
||||
<string name="show_recycle_bin">Show the Recycle Bin at the folders screen</string>
|
||||
<string name="deep_zoomable_images">Deep zoomable images</string>
|
||||
<string name="show_highest_quality">Show images in the highest possible quality</string>
|
||||
|
||||
<!-- Setting sections -->
|
||||
<string name="thumbnails">Thumbnails</string>
|
||||
|
|
|
@ -159,6 +159,8 @@
|
|||
<string name="do_extra_check">Zusätzliche Überprüfung, um ungültige Dateien nicht anzuzeigen</string>
|
||||
<string name="show_at_bottom">Ausgewählte Funktionen am unteren Bildschirmrand anzeigen</string>
|
||||
<string name="show_recycle_bin">Papierkorb auf dem Ordnerbildschirm anzeigen</string>
|
||||
<string name="deep_zoomable_images">Deep zoomable images</string>
|
||||
<string name="show_highest_quality">Show images in the highest possible quality</string>
|
||||
|
||||
<!-- Setting sections -->
|
||||
<string name="thumbnails">Thumbnails</string>
|
||||
|
|
|
@ -147,8 +147,7 @@
|
|||
<string name="hide_system_ui_at_fullscreen">Αυτόματη απόκρυψη στοιχείων συστήματος σε πλήρη οθόνη</string>
|
||||
<string name="delete_empty_folders">Διαγραφή άδειων φακέλων, όταν διαγραφεί το περιεχόμενό τους</string>
|
||||
<string name="allow_photo_gestures">Να επιτρέπεται ο έλεγχος φωτεινότητας με κατακόρυφες κινήσεις</string>
|
||||
<string name="allow_video_gestures">Να επιτρέπεται ο έλεγχος έντασης του βίντεο και φωτεινότητας με κατακόρυφες
|
||||
κινήσεις (gestures)</string>
|
||||
<string name="allow_video_gestures">Να επιτρέπεται ο έλεγχος έντασης του βίντεο και φωτεινότητας με κατακόρυφες κινήσεις (gestures)</string>
|
||||
<string name="show_media_count">Εμφάνιση του αριθμού πολυμέσων στον φάκελο, στην κύρια οθόνη</string>
|
||||
<string name="replace_share_with_rotate">Αντικατάσταση της "Κοινής χρήσης" με "Περιστροφή" στο μενού πλήρους οθόνης</string>
|
||||
<string name="show_extended_details">Εμφάνιση λεπτομερειών στα πολυμέσα σε κατάσταση πλήρους οθόνης</string>
|
||||
|
@ -160,6 +159,8 @@
|
|||
<string name="do_extra_check">Επιπλέον έλεγχος για την αποφυγή εμφάνισης λανθασμένων αρχείων</string>
|
||||
<string name="show_at_bottom">Εμφάνιση μερικών κουμπιών λειτουργιών στο κάτω μέρος της οθόνης</string>
|
||||
<string name="show_recycle_bin">Εμφάνιση του κάδου ανακύκλωσης στην οθόνη φακέλων</string>
|
||||
<string name="deep_zoomable_images">Deep zoomable images</string>
|
||||
<string name="show_highest_quality">Show images in the highest possible quality</string>
|
||||
|
||||
<!-- Setting sections -->
|
||||
<string name="thumbnails">Εικονίδια</string>
|
||||
|
|
|
@ -159,6 +159,8 @@
|
|||
<string name="do_extra_check">Hacer una comprobación adicional para evitar mostrar archivos inválidos</string>
|
||||
<string name="show_at_bottom">Mostrar algunos botones de acción en la parte inferior de la pantalla</string>
|
||||
<string name="show_recycle_bin">Mostrar la papelera de reciclaje en la pantalla de carpetas</string>
|
||||
<string name="deep_zoomable_images">Deep zoomable images</string>
|
||||
<string name="show_highest_quality">Show images in the highest possible quality</string>
|
||||
|
||||
<!-- Setting sections -->
|
||||
<string name="thumbnails">Miniaturas</string>
|
||||
|
|
|
@ -159,6 +159,8 @@
|
|||
<string name="do_extra_check">Tee ylimääräinen tarkistus rikkinäisten tiedostojen varalta</string>
|
||||
<string name="show_at_bottom">Show some action buttons at the bottom of the screen</string>
|
||||
<string name="show_recycle_bin">Show the Recycle Bin at the folders screen</string>
|
||||
<string name="deep_zoomable_images">Deep zoomable images</string>
|
||||
<string name="show_highest_quality">Show images in the highest possible quality</string>
|
||||
|
||||
<!-- Setting sections -->
|
||||
<string name="thumbnails">Esikatselukuvat</string>
|
||||
|
|
|
@ -159,6 +159,8 @@
|
|||
<string name="do_extra_check">Faire une vérification supplémentaire pour éviter de montrer des fichiers invalides</string>
|
||||
<string name="show_at_bottom">Afficher quelques boutons d\'action en bas de l\'écran</string>
|
||||
<string name="show_recycle_bin">Afficher la corbeille à l\'écran Dossiers</string>
|
||||
<string name="deep_zoomable_images">Deep zoomable images</string>
|
||||
<string name="show_highest_quality">Show images in the highest possible quality</string>
|
||||
|
||||
<!-- Setting sections -->
|
||||
<string name="thumbnails">Vignettes</string>
|
||||
|
|
|
@ -159,6 +159,8 @@
|
|||
<string name="do_extra_check">Facer unha comprobación extra para evitar mostrar ficheiros non válidos</string>
|
||||
<string name="show_at_bottom">Show some action buttons at the bottom of the screen</string>
|
||||
<string name="show_recycle_bin">Show the Recycle Bin at the folders screen</string>
|
||||
<string name="deep_zoomable_images">Deep zoomable images</string>
|
||||
<string name="show_highest_quality">Show images in the highest possible quality</string>
|
||||
|
||||
<!-- Setting sections -->
|
||||
<string name="thumbnails">Iconas</string>
|
||||
|
|
|
@ -159,6 +159,8 @@
|
|||
<string name="do_extra_check">Napravite dodatnu provjeru da biste izbjegli prikazivanje nevažećih datoteka</string>
|
||||
<string name="show_at_bottom">Pokažite neke gumbe za radnju pri dnu zaslona</string>
|
||||
<string name="show_recycle_bin">Prikažite koš za smeće na zaslonu mapa</string>
|
||||
<string name="deep_zoomable_images">Deep zoomable images</string>
|
||||
<string name="show_highest_quality">Show images in the highest possible quality</string>
|
||||
|
||||
<!-- Setting sections -->
|
||||
<string name="thumbnails">Sličice</string>
|
||||
|
|
|
@ -159,6 +159,8 @@
|
|||
<string name="do_extra_check">Do an extra check to avoid showing invalid files</string>
|
||||
<string name="show_at_bottom">Show some action buttons at the bottom of the screen</string>
|
||||
<string name="show_recycle_bin">Show the Recycle Bin at the folders screen</string>
|
||||
<string name="deep_zoomable_images">Deep zoomable images</string>
|
||||
<string name="show_highest_quality">Show images in the highest possible quality</string>
|
||||
|
||||
<!-- Setting sections -->
|
||||
<string name="thumbnails">Thumbnails</string>
|
||||
|
|
|
@ -159,6 +159,8 @@
|
|||
<string name="do_extra_check">Fai un controllo ulteriore per evitare di mostrare file non validi</string>
|
||||
<string name="show_at_bottom">Mostra alcuni pulsanti azione in fondo allo schermo</string>
|
||||
<string name="show_recycle_bin">Mostra il cestino nella schermata delle cartelle</string>
|
||||
<string name="deep_zoomable_images">Deep zoomable images</string>
|
||||
<string name="show_highest_quality">Show images in the highest possible quality</string>
|
||||
|
||||
<!-- Setting sections -->
|
||||
<string name="thumbnails">Miniature</string>
|
||||
|
|
|
@ -159,6 +159,8 @@
|
|||
<string name="do_extra_check">無効なファイルを見せない調整を行う</string>
|
||||
<string name="show_at_bottom">画面下部にアクションボタンを表示する</string>
|
||||
<string name="show_recycle_bin">フォルダ画面にごみ箱を表示する</string>
|
||||
<string name="deep_zoomable_images">Deep zoomable images</string>
|
||||
<string name="show_highest_quality">Show images in the highest possible quality</string>
|
||||
|
||||
<!-- Setting sections -->
|
||||
<string name="thumbnails">サムネイル設定</string>
|
||||
|
|
|
@ -159,6 +159,8 @@
|
|||
<string name="do_extra_check">잘못된 파일 표시를 방지하기 위해 추가 검사 수행</string>
|
||||
<string name="show_at_bottom">Show some action buttons at the bottom of the screen</string>
|
||||
<string name="show_recycle_bin">Show the Recycle Bin at the folders screen</string>
|
||||
<string name="deep_zoomable_images">Deep zoomable images</string>
|
||||
<string name="show_highest_quality">Show images in the highest possible quality</string>
|
||||
|
||||
<!-- Setting sections -->
|
||||
<string name="thumbnails">섬네일</string>
|
||||
|
|
|
@ -159,6 +159,8 @@
|
|||
<string name="do_extra_check">Atlikti papildomą patikrinimą, kad nebūtų rodomos sugadintos bylos</string>
|
||||
<string name="show_at_bottom">Show some action buttons at the bottom of the screen</string>
|
||||
<string name="show_recycle_bin">Show the Recycle Bin at the folders screen</string>
|
||||
<string name="deep_zoomable_images">Deep zoomable images</string>
|
||||
<string name="show_highest_quality">Show images in the highest possible quality</string>
|
||||
|
||||
<!-- Setting sections -->
|
||||
<string name="thumbnails">Miniatiūros</string>
|
||||
|
|
|
@ -159,6 +159,8 @@
|
|||
<string name="do_extra_check">Gjør en ekstra sjekk for å unngå visning av ugyldige filer</string>
|
||||
<string name="show_at_bottom">Vis noen handlingsknapper nederst på skjermen</string>
|
||||
<string name="show_recycle_bin">Vis papirkurven på mappeskjermen</string>
|
||||
<string name="deep_zoomable_images">Deep zoomable images</string>
|
||||
<string name="show_highest_quality">Show images in the highest possible quality</string>
|
||||
|
||||
<!-- Setting sections -->
|
||||
<string name="thumbnails">Minibilder</string>
|
||||
|
|
|
@ -159,6 +159,8 @@
|
|||
<string name="do_extra_check">Ongeldige bestanden verbergen</string>
|
||||
<string name="show_at_bottom">Enkele actieknoppen onderaan het scherm tonen</string>
|
||||
<string name="show_recycle_bin">Prullenbak weergeven in de mapweergave</string>
|
||||
<string name="deep_zoomable_images">Deep zoomable images</string>
|
||||
<string name="show_highest_quality">Show images in the highest possible quality</string>
|
||||
|
||||
<!-- Setting sections -->
|
||||
<string name="thumbnails">Miniatuurvoorbeelden</string>
|
||||
|
|
|
@ -159,6 +159,8 @@
|
|||
<string name="do_extra_check">Dodatkowe sprawdzenie w celu uniknięcia pokazywania niewłaściwych plików</string>
|
||||
<string name="show_at_bottom">Pokazuj niektóre przyciski akcji na dole ekranu</string>
|
||||
<string name="show_recycle_bin">Pokazuj kosz w widoku folderów</string>
|
||||
<string name="deep_zoomable_images">Deep zoomable images</string>
|
||||
<string name="show_highest_quality">Show images in the highest possible quality</string>
|
||||
|
||||
<!-- Setting sections -->
|
||||
<string name="thumbnails">Miniatury</string>
|
||||
|
|
|
@ -159,6 +159,8 @@
|
|||
<string name="do_extra_check">Realizar verificação extra para evitar mostrar arquivos inválidos</string>
|
||||
<string name="show_at_bottom">Show some action buttons at the bottom of the screen</string>
|
||||
<string name="show_recycle_bin">Show the Recycle Bin at the folders screen</string>
|
||||
<string name="deep_zoomable_images">Deep zoomable images</string>
|
||||
<string name="show_highest_quality">Show images in the highest possible quality</string>
|
||||
|
||||
<!-- Setting sections -->
|
||||
<string name="thumbnails">Miniaturas</string>
|
||||
|
|
|
@ -159,6 +159,8 @@
|
|||
<string name="do_extra_check">Efetuar uma dupla verificação para evitar mostrar os ficheiros inválidos</string>
|
||||
<string name="show_at_bottom">Mostrar alguns botões de ação na base do ecrã</string>
|
||||
<string name="show_recycle_bin">Mostrar reciclagem no ecrã de pastas</string>
|
||||
<string name="deep_zoomable_images">Deep zoomable images</string>
|
||||
<string name="show_highest_quality">Show images in the highest possible quality</string>
|
||||
|
||||
<!-- Setting sections -->
|
||||
<string name="thumbnails">Miniaturas</string>
|
||||
|
|
|
@ -159,6 +159,8 @@
|
|||
<string name="do_extra_check">Дополнительная проверка, чтобы избежать показа неподдерживаемых файлов</string>
|
||||
<string name="show_at_bottom">Показывать кнопки действий в нижней части экрана</string>
|
||||
<string name="show_recycle_bin">Показывать корзину вместе с папками</string>
|
||||
<string name="deep_zoomable_images">Deep zoomable images</string>
|
||||
<string name="show_highest_quality">Show images in the highest possible quality</string>
|
||||
|
||||
<!-- Setting sections -->
|
||||
<string name="thumbnails">Миниатюры</string>
|
||||
|
|
|
@ -159,6 +159,8 @@
|
|||
<string name="do_extra_check">Predísť zobrazovaniu neplatných súborov dodatočnou kontrolou</string>
|
||||
<string name="show_at_bottom">Zobraziť niektoré akčné tlačidlá na spodku obrazovky</string>
|
||||
<string name="show_recycle_bin">Zobraziť odpadkový kôš na obrazovke s priečinkami</string>
|
||||
<string name="deep_zoomable_images">Hlboko priblížiteľné obrázky</string>
|
||||
<string name="show_highest_quality">Zobrazovať obrázky v najlepšej možnej kvalite</string>
|
||||
|
||||
<!-- Setting sections -->
|
||||
<string name="thumbnails">Náhľady</string>
|
||||
|
|
|
@ -159,6 +159,8 @@
|
|||
<string name="do_extra_check">Gör en extra kontroll för att hindra ogiltiga filer från att visas</string>
|
||||
<string name="show_at_bottom">Visa några åtgärdsknappar längst ned på skärmen</string>
|
||||
<string name="show_recycle_bin">Visa Papperskorgen i mappvyn</string>
|
||||
<string name="deep_zoomable_images">Deep zoomable images</string>
|
||||
<string name="show_highest_quality">Show images in the highest possible quality</string>
|
||||
|
||||
<!-- Setting sections -->
|
||||
<string name="thumbnails">Miniatyrer</string>
|
||||
|
|
|
@ -159,6 +159,8 @@
|
|||
<string name="do_extra_check">Do an extra check to avoid showing invalid files</string>
|
||||
<string name="show_at_bottom">Show some action buttons at the bottom of the screen</string>
|
||||
<string name="show_recycle_bin">Show the Recycle Bin at the folders screen</string>
|
||||
<string name="deep_zoomable_images">Deep zoomable images</string>
|
||||
<string name="show_highest_quality">Show images in the highest possible quality</string>
|
||||
|
||||
<!-- Setting sections -->
|
||||
<string name="thumbnails">Thumbnails</string>
|
||||
|
|
|
@ -159,6 +159,8 @@
|
|||
<string name="do_extra_check">额外检查以避免显示无效的文件</string>
|
||||
<string name="show_at_bottom">在屏幕底部显示一些操作按钮</string>
|
||||
<string name="show_recycle_bin">Show the Recycle Bin at the folders screen</string>
|
||||
<string name="deep_zoomable_images">Deep zoomable images</string>
|
||||
<string name="show_highest_quality">Show images in the highest possible quality</string>
|
||||
|
||||
<!-- Setting sections -->
|
||||
<string name="thumbnails">缩略图</string>
|
||||
|
|
|
@ -159,6 +159,8 @@
|
|||
<string name="do_extra_check">進行額外檢查,避免顯示無效的檔案</string>
|
||||
<string name="show_at_bottom">在螢幕底部顯示一些操作按鈕</string>
|
||||
<string name="show_recycle_bin">在資料夾畫面顯示回收桶</string>
|
||||
<string name="deep_zoomable_images">Deep zoomable images</string>
|
||||
<string name="show_highest_quality">Show images in the highest possible quality</string>
|
||||
|
||||
<!-- Setting sections -->
|
||||
<string name="thumbnails">縮圖</string>
|
||||
|
|
|
@ -159,6 +159,8 @@
|
|||
<string name="do_extra_check">Do an extra check to avoid showing invalid files</string>
|
||||
<string name="show_at_bottom">Show some action buttons at the bottom of the screen</string>
|
||||
<string name="show_recycle_bin">Show the Recycle Bin at the folders screen</string>
|
||||
<string name="deep_zoomable_images">Deep zoomable images</string>
|
||||
<string name="show_highest_quality">Show images in the highest possible quality</string>
|
||||
|
||||
<!-- Setting sections -->
|
||||
<string name="thumbnails">Thumbnails</string>
|
||||
|
|
Loading…
Reference in New Issue