From 7c7b7d254d694e82901a91e1b9ea7939c8701d76 Mon Sep 17 00:00:00 2001 From: tibbi Date: Sun, 28 Jan 2018 21:30:14 +0100 Subject: [PATCH 01/19] disable "Temporarily show hidden" after 10 minutes of app backgrounding --- .../gallery/activities/MainActivity.kt | 31 +++++++++++++++---- .../gallery/activities/MediaActivity.kt | 29 +++++++++++++---- .../gallery/helpers/Constants.kt | 1 + 3 files changed, 49 insertions(+), 12 deletions(-) diff --git a/app/src/main/kotlin/com/simplemobiletools/gallery/activities/MainActivity.kt b/app/src/main/kotlin/com/simplemobiletools/gallery/activities/MainActivity.kt index 6bb06015e..7f6a7278c 100644 --- a/app/src/main/kotlin/com/simplemobiletools/gallery/activities/MainActivity.kt +++ b/app/src/main/kotlin/com/simplemobiletools/gallery/activities/MainActivity.kt @@ -52,6 +52,14 @@ class MainActivity : SimpleActivity(), DirectoryAdapter.DirOperationsListener { private var mAllowPickingMultiple = false private var mIsThirdPartyIntent = false private var mIsGettingDirs = false + private var mLoadedInitialPhotos = false + private var mIsPasswordProtectionPending = false + private var mLatestMediaId = 0L + private var mLastMediaHandler = Handler() + private var mTempShowHiddenHandler = Handler() + private var mCurrAsyncTask: GetDirectoriesAsynctask? = null + private var mZoomListener: MyRecyclerView.MyZoomListener? = null + private var mStoredUseEnglish = false private var mStoredAnimateGifs = true private var mStoredCropThumbnails = true @@ -59,12 +67,6 @@ class MainActivity : SimpleActivity(), DirectoryAdapter.DirOperationsListener { private var mStoredShowMediaCount = true private var mStoredShowInfoBubble = true private var mStoredTextColor = 0 - private var mLoadedInitialPhotos = false - private var mIsPasswordProtectionPending = false - private var mLatestMediaId = 0L - private var mLastMediaHandler = Handler() - private var mCurrAsyncTask: GetDirectoriesAsynctask? = null - private var mZoomListener: MyRecyclerView.MyZoomListener? = null override fun onCreate(savedInstanceState: Bundle?) { super.onCreate(savedInstanceState) @@ -94,6 +96,11 @@ class MainActivity : SimpleActivity(), DirectoryAdapter.DirOperationsListener { mIsPasswordProtectionPending = config.appPasswordProtectionOn } + override fun onStart() { + super.onStart() + mTempShowHiddenHandler.removeCallbacksAndMessages(null) + } + override fun onResume() { super.onResume() config.isThirdPartyIntent = false @@ -156,9 +163,21 @@ class MainActivity : SimpleActivity(), DirectoryAdapter.DirOperationsListener { } } + override fun onStop() { + super.onStop() + if (config.temporarilyShowHidden) { + mTempShowHiddenHandler.postDelayed({ + config.temporarilyShowHidden = false + }, SHOW_TEMP_HIDDEN_DURATION) + } else { + mTempShowHiddenHandler.removeCallbacksAndMessages(null) + } + } + override fun onDestroy() { super.onDestroy() config.temporarilyShowHidden = false + mTempShowHiddenHandler.removeCallbacksAndMessages(null) removeTempFolder() } diff --git a/app/src/main/kotlin/com/simplemobiletools/gallery/activities/MediaActivity.kt b/app/src/main/kotlin/com/simplemobiletools/gallery/activities/MediaActivity.kt index 0be1d39e6..49c35da3d 100644 --- a/app/src/main/kotlin/com/simplemobiletools/gallery/activities/MediaActivity.kt +++ b/app/src/main/kotlin/com/simplemobiletools/gallery/activities/MediaActivity.kt @@ -53,17 +53,19 @@ class MediaActivity : SimpleActivity(), MediaAdapter.MediaOperationsListener { private var mAllowPickingMultiple = false private var mShowAll = false private var mLoadedInitialPhotos = false + private var mLatestMediaId = 0L + private var mLastMediaHandler = Handler() + private var mTempShowHiddenHandler = Handler() + private var mCurrAsyncTask: GetMediaAsynctask? = null + private var mZoomListener: MyRecyclerView.MyZoomListener? = null + private var mSearchMenuItem: MenuItem? = null + private var mStoredUseEnglish = false private var mStoredAnimateGifs = true private var mStoredCropThumbnails = true private var mStoredScrollHorizontally = true private var mStoredShowInfoBubble = true private var mStoredTextColor = 0 - private var mLatestMediaId = 0L - private var mLastMediaHandler = Handler() - private var mCurrAsyncTask: GetMediaAsynctask? = null - private var mZoomListener: MyRecyclerView.MyZoomListener? = null - private var mSearchMenuItem: MenuItem? = null companion object { var mMedia = ArrayList() @@ -90,6 +92,11 @@ class MediaActivity : SimpleActivity(), MediaAdapter.MediaOperationsListener { } } + override fun onStart() { + super.onStart() + mTempShowHiddenHandler.removeCallbacksAndMessages(null) + } + override fun onResume() { super.onResume() if (mStoredUseEnglish != config.useEnglish) { @@ -139,13 +146,23 @@ class MediaActivity : SimpleActivity(), MediaAdapter.MediaOperationsListener { if (mSearchMenuItem != null) { MenuItemCompat.collapseActionView(mSearchMenuItem) } + + if (config.temporarilyShowHidden) { + mTempShowHiddenHandler.postDelayed({ + config.temporarilyShowHidden = false + }, SHOW_TEMP_HIDDEN_DURATION) + } else { + mTempShowHiddenHandler.removeCallbacksAndMessages(null) + } } override fun onDestroy() { super.onDestroy() - if (config.showAll) + if (config.showAll) { config.temporarilyShowHidden = false + } + mTempShowHiddenHandler.removeCallbacksAndMessages(null) mMedia.clear() } diff --git a/app/src/main/kotlin/com/simplemobiletools/gallery/helpers/Constants.kt b/app/src/main/kotlin/com/simplemobiletools/gallery/helpers/Constants.kt index 821d9f1e8..9d0e35873 100644 --- a/app/src/main/kotlin/com/simplemobiletools/gallery/helpers/Constants.kt +++ b/app/src/main/kotlin/com/simplemobiletools/gallery/helpers/Constants.kt @@ -62,6 +62,7 @@ const val SLIDESHOW_SCROLL_DURATION = 500L const val NOMEDIA = ".nomedia" const val MAX_COLUMN_COUNT = 20 +const val SHOW_TEMP_HIDDEN_DURATION = 600000L const val DIRECTORY = "directory" const val MEDIUM = "medium" From 3773ffffa195c5fc04dbbc78a63b5848c7b94d46 Mon Sep 17 00:00:00 2001 From: tibbi Date: Mon, 29 Jan 2018 00:07:30 +0100 Subject: [PATCH 02/19] update commons to 3.8.15 --- app/build.gradle | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/build.gradle b/app/build.gradle index 19eb2c665..0fbef5b6f 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -43,7 +43,7 @@ ext { } dependencies { - implementation 'com.simplemobiletools:commons:3.8.12' + implementation 'com.simplemobiletools:commons:3.8.15' implementation 'com.theartofdev.edmodo:android-image-cropper:2.6.0' implementation 'com.android.support:multidex:1.0.2' implementation 'com.google.code.gson:gson:2.8.2' From c5cd4cb6a78da8d9082da218d65e1719c7f22f18 Mon Sep 17 00:00:00 2001 From: tibbi Date: Mon, 29 Jan 2018 00:11:53 +0100 Subject: [PATCH 03/19] add the new toggles in Whats New --- .../com/simplemobiletools/gallery/activities/MainActivity.kt | 1 + app/src/main/res/values/donottranslate.xml | 5 +++++ 2 files changed, 6 insertions(+) diff --git a/app/src/main/kotlin/com/simplemobiletools/gallery/activities/MainActivity.kt b/app/src/main/kotlin/com/simplemobiletools/gallery/activities/MainActivity.kt index 7f6a7278c..25da562e2 100644 --- a/app/src/main/kotlin/com/simplemobiletools/gallery/activities/MainActivity.kt +++ b/app/src/main/kotlin/com/simplemobiletools/gallery/activities/MainActivity.kt @@ -697,6 +697,7 @@ class MainActivity : SimpleActivity(), DirectoryAdapter.DirOperationsListener { add(Release(138, R.string.release_138)) add(Release(143, R.string.release_143)) add(Release(158, R.string.release_158)) + add(Release(159, R.string.release_159)) checkWhatsNew(this, BuildConfig.VERSION_CODE) } } diff --git a/app/src/main/res/values/donottranslate.xml b/app/src/main/res/values/donottranslate.xml index 9a25897f3..929e5a89d 100644 --- a/app/src/main/res/values/donottranslate.xml +++ b/app/src/main/res/values/donottranslate.xml @@ -2,6 +2,11 @@ + + Added a toggle for replacing deep zoomable images with better quality ones\n + Added a toggle for hiding Extended details when the statusbar is hidden\n + Added a toggle for switching media files by clicking on screen sides + Added optional one-finger drag zoom, disabled by default Added new options to use english language on non-english devices, to password protect whole app and to lock screen orientation at fullscreen view From 2a04d822859249fae94589d517f7aa93c0b2296f Mon Sep 17 00:00:00 2001 From: tibbi Date: Mon, 29 Jan 2018 00:15:02 +0100 Subject: [PATCH 04/19] update version to 3.3.1 --- app/build.gradle | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/build.gradle b/app/build.gradle index 0fbef5b6f..5f77688e3 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -10,8 +10,8 @@ android { applicationId "com.simplemobiletools.gallery" minSdkVersion 16 targetSdkVersion 27 - versionCode 158 - versionName "3.3.0" + versionCode 159 + versionName "3.3.1" multiDexEnabled true setProperty("archivesBaseName", "gallery") } From f39b715d9ce09b13bf8e8c953c1529712e36c3ca Mon Sep 17 00:00:00 2001 From: tibbi Date: Mon, 29 Jan 2018 00:15:08 +0100 Subject: [PATCH 05/19] updating changelog --- CHANGELOG.md | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index bc94bd5b3..6024cdef7 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,15 @@ Changelog ========== +Version 3.3.1 *(2018-01-29)* +---------------------------- + + * Added a toggle for replacing deep zoomable images with better quality ones + * Added a toggle for hiding Extended details when the statusbar is hidden + * Added a toggle for switching media files by clicking on screen sides + * Disable "Temporarily show hidden" after 10 minutes of backgrounding + * Split Settings in separate sections + Version 3.3.0 *(2018-01-23)* ---------------------------- From 6fc1541ea75c5f59e5a672a8888cb8d328521a36 Mon Sep 17 00:00:00 2001 From: Phoenix1747 Date: Mon, 29 Jan 2018 08:31:03 +0100 Subject: [PATCH 06/19] Update strings.xml --- app/src/main/res/values-de/strings.xml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/src/main/res/values-de/strings.xml b/app/src/main/res/values-de/strings.xml index f8312ab60..ff8f5f0ba 100644 --- a/app/src/main/res/values-de/strings.xml +++ b/app/src/main/res/values-de/strings.xml @@ -133,13 +133,13 @@ Eigenschaften auswählen Erlaube Ein-Finger-Zoom im Vollbild Wechsle sofort zwischen Medien beim Klicken auf eine Bildschirmseite - Replace deep zoomable images with better quality ones - Hide extended details when status bar is hidden + Stark zoombare Bilder durch Bilder mit hoher Qualität ersetzen. + Erweiterte Details nicht anzeigen, wenn die Benachrichtigungsleiste versteckt ist Thumbnails Vollbild-Medien - Extended details + Erweiterte Details From 64957b0c61cbc4105aaa932091b945075490d953 Mon Sep 17 00:00:00 2001 From: tibbi Date: Mon, 29 Jan 2018 16:23:29 +0100 Subject: [PATCH 07/19] update commons to 3.9.4 --- app/build.gradle | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/build.gradle b/app/build.gradle index 5f77688e3..45a3d649c 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -43,7 +43,7 @@ ext { } dependencies { - implementation 'com.simplemobiletools:commons:3.8.15' + implementation 'com.simplemobiletools:commons:3.9.4' implementation 'com.theartofdev.edmodo:android-image-cropper:2.6.0' implementation 'com.android.support:multidex:1.0.2' implementation 'com.google.code.gson:gson:2.8.2' From 059f606f7def569ebcf5499ef20c307b0e987ace Mon Sep 17 00:00:00 2001 From: Rodrigo Date: Mon, 29 Jan 2018 15:34:20 -0200 Subject: [PATCH 08/19] Update strings.xml --- app/src/main/res/values-pt-rBR/strings.xml | 24 +++++++++++----------- 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/app/src/main/res/values-pt-rBR/strings.xml b/app/src/main/res/values-pt-rBR/strings.xml index f7e31c054..bb2cdec30 100644 --- a/app/src/main/res/values-pt-rBR/strings.xml +++ b/app/src/main/res/values-pt-rBR/strings.xml @@ -7,7 +7,7 @@ (oculto) Fixar pasta Desfixar pasta - Pin to the top + Fixar no topo Mostrar conteúdo de todas as pastas Todas as pastas Alternar para a visualização de pastas @@ -43,9 +43,9 @@ A exclusão de uma pasta apenas oculta o seu conteúdo da galeria, pois todos os outros aplicativos poderão acessá-las.\\n\\nSe quiser ocultar de todos os aplicativos, utilize a função ocultar. Remover todas Remover todas as pastas da lista de exclusões? Esta ação não apaga as pastas. - Hidden folders - Manage hidden folders - Seems like you don\'t have any folders hidden with a \".nomedia\" file. + Pastas ocultas + Gerenciar pastas ocultas + Parece que você não tem nenhuma pasta oculta com um arquivo \".nomedia\". Pastas incluídas @@ -122,7 +122,7 @@ Padrão do sistema Sensor do aparelho Proporção da mídia - Black background and status bar at fullscreen media + Fundo de tela e barra de status preta quando em visualização de tela cheia Rolar miniaturas horizontalmente Esconder interface do sistema automaticamente quando em tela cheia Apagar pastas vazias após deleter seu conteúdo @@ -131,15 +131,15 @@ Substituir botão "Compartilhar" por "Rotação de tela" quando em tela cheia Exibir detalhes extendidos quando em tela cheia Gerenciar detalhes extendidos - Allow one finger zoom at fullscreen media - Allow instantly changing media by clicking on screen sides - Replace deep zoomable images with better quality ones - Hide extended details when status bar is hidden + Permitir zoom com um dedo quando em exibição de tela cheia + Permitir alternância instantânia de mídia clicando nas laterais da tela + Substituir imagens aptas a grande quantitade de zoom por imagens de melhor qualidade + Ocultar detalhes extendidos quando a barra de status estiver oculta - Thumbnails - Fullscreen media - Extended details + Miniaturas + Mídia em tela cheia + Detalhes extendidos From 3041b3bbc0e0e2ea3f6f4c4bf86124166393b8fb Mon Sep 17 00:00:00 2001 From: Guillaume Date: Mon, 29 Jan 2018 21:37:16 +0100 Subject: [PATCH 09/19] Dutch + 2 remarks 1. When "Replace zoomable images" is enabled, I can actually zoom less than when it's disabled 2. One finger zoom somehow puts the image upside down after some zooming in and out. Perhaps EXIF-tag or "rotate according to device orientation" related? (Not the right place, I know) --- app/src/main/res/values-nl/strings.xml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/src/main/res/values-nl/strings.xml b/app/src/main/res/values-nl/strings.xml index 620635981..bfa0a1ec7 100644 --- a/app/src/main/res/values-nl/strings.xml +++ b/app/src/main/res/values-nl/strings.xml @@ -133,13 +133,13 @@ Uitgebreide informatie Met één vinger zoomen in volledig scherm Direct naar vorige/volgende door op de zijkanten van het scherm te tikken - Replace deep zoomable images with better quality ones - Hide extended details when status bar is hidden + Betere kwaliteit hanteren bij ver inzoomen + Uitgebreide informatie niet tonen als de statusbalk is verborgen Miniatuurvoorbeelden Volledig scherm - Extended details + Uitgebreide informatie From 29fd01afe717c1ef606bc5a8bdc788f200f20f60 Mon Sep 17 00:00:00 2001 From: Phoenix1747 Date: Mon, 29 Jan 2018 22:13:32 +0100 Subject: [PATCH 10/19] Update DE --- app/src/main/res/values-de/strings.xml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/app/src/main/res/values-de/strings.xml b/app/src/main/res/values-de/strings.xml index ff8f5f0ba..cc89b5948 100644 --- a/app/src/main/res/values-de/strings.xml +++ b/app/src/main/res/values-de/strings.xml @@ -7,7 +7,7 @@ (versteckt) Ordner anheften Ordner loslösen - An den Start anheften + Oben anheften Ansicht: Alle Medien Alle Medien Ansicht: Als Ordner @@ -45,13 +45,13 @@ Alle Ordner aus der Ausgeblendet-Liste entfernen? Die Ordner selbst werden nicht gelöscht. Versteckte Ordner Versteckte Ordner verwalten - Sieht so aus, als ob du keine Ordner mit einer \".nomedia\" Datei versteckt hast. + Keinen mit einer \".nomedia\"-Datei versteckten Ordner gefunden. Einbezogene Ordner Einbezogene Ordner verwalten Ordner hinzufügen - Solltest du weitere Mediendateien haben, die von der App nicht erkannt wurden, kannst du ihre Ordner hier manuell hinzufügen. + Solltest du weitere Mediendateien haben, die von der App nicht gefunden wurden, kannst du deren Ordner hier manuell hinzufügen. Größe ändern @@ -89,7 +89,7 @@ Hintergrundbild erfolgreich festgelegt Hochformat Querformat - Home-Screen + Homescreen Sperrbildschirm Home- und Sperrbildschirm @@ -122,9 +122,9 @@ Systemeinstellung Gerätedrehung Seitenverhältnis - Schwarzer Hintergrund und Statusleiste bei Vollbild-Medien + Schwarzer Hintergrund & schwarze Systemleiste im Vollbild Kacheln horizontal scrollen - Systemleisten in Vollbild ausblenden + Systemleiste im Vollbild ausblenden Nach Löschen leere Ordner löschen Gesten für Videolautstärke/Helligkeit Medienanzahl bei Ordnern anzeigen From c109c27d873fdcb4878f22f442eb2eeb7be4f4e9 Mon Sep 17 00:00:00 2001 From: Guillaume Date: Mon, 29 Jan 2018 23:02:48 +0100 Subject: [PATCH 11/19] Dutch --- app/src/main/res/values-nl/strings.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/res/values-nl/strings.xml b/app/src/main/res/values-nl/strings.xml index bfa0a1ec7..be82781f7 100644 --- a/app/src/main/res/values-nl/strings.xml +++ b/app/src/main/res/values-nl/strings.xml @@ -133,7 +133,7 @@ Uitgebreide informatie Met één vinger zoomen in volledig scherm Direct naar vorige/volgende door op de zijkanten van het scherm te tikken - Betere kwaliteit hanteren bij ver inzoomen + In hoge kwaliteit weergeven (ten koste van ver inzoomen) Uitgebreide informatie niet tonen als de statusbalk is verborgen From 788ece2a1cdaca1572123e68ac9e369fab28d0f3 Mon Sep 17 00:00:00 2001 From: Phoenix1747 Date: Tue, 30 Jan 2018 09:47:10 +0100 Subject: [PATCH 12/19] Update strings.xml --- app/src/main/res/values-de/strings.xml | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/app/src/main/res/values-de/strings.xml b/app/src/main/res/values-de/strings.xml index cc89b5948..39b4d3634 100644 --- a/app/src/main/res/values-de/strings.xml +++ b/app/src/main/res/values-de/strings.xml @@ -34,7 +34,7 @@ Filter ändern - Diese Funktion versteckt die ausgewählten Ordner (auch für andere Apps), indem dort im Dateisystem eine \'.nomedia\'-Datei abgelegt wird. Dadurch werden auch deren Unterordner versteckt. Solche Ordner werden nur gezeigt, wenn die Einstellung \'Versteckte Ordner zeigen\' aktiv ist (auch andere Apps bieten üblicherweise eine solche Option). Fortfahren? + Diese Funktion versteckt die ausgewählten Ordner (auch für andere Apps), indem dort im Dateisystem eine \'.nomedia\'-Datei abgelegt wird. Dadurch werden auch deren Unterordner versteckt. Solche Ordner werden nur gezeigt, wenn die Einstellung \'Versteckte Elemente anzeigen\' aktiv ist (auch andere Apps bieten üblicherweise eine solche Option). Fortfahren? Ordner ausschließen Ausgeschlossene Ordner Ausgeschlossene Ordner verwalten @@ -126,15 +126,15 @@ Kacheln horizontal scrollen Systemleiste im Vollbild ausblenden Nach Löschen leere Ordner löschen - Gesten für Videolautstärke/Helligkeit + Gesten für Videolautstärke/Helligkeit zulassen Medienanzahl bei Ordnern anzeigen Teilen/Drehen im Vollbild-Menü vertauschen - Eigenschaften anzeigen im Vollbild + Eigenschaften im Vollbild anzeigen Eigenschaften auswählen - Erlaube Ein-Finger-Zoom im Vollbild - Wechsle sofort zwischen Medien beim Klicken auf eine Bildschirmseite - Stark zoombare Bilder durch Bilder mit hoher Qualität ersetzen. - Erweiterte Details nicht anzeigen, wenn die Benachrichtigungsleiste versteckt ist + Ein-Finger-Zoom im Vollbild zulassen + Beim Tippen auf eine Bildschirmseite sofort zwischen Medien wechseln + Stark zoombare Bilder durch Bilder mit hoher Qualität ersetzen + Erweiterte Details nicht anzeigen, wenn die Systemleiste versteckt ist Thumbnails From bc5984bba588c36234a249cd2e2bcdda57f2f64f Mon Sep 17 00:00:00 2001 From: fricyo <30796677+fricyo@users.noreply.github.com> Date: Tue, 30 Jan 2018 16:57:22 +0800 Subject: [PATCH 13/19] Translation update --- app/src/main/res/values-zh-rTW/strings.xml | 24 +++++++++++----------- 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/app/src/main/res/values-zh-rTW/strings.xml b/app/src/main/res/values-zh-rTW/strings.xml index d59ddb4f4..a00a943a1 100644 --- a/app/src/main/res/values-zh-rTW/strings.xml +++ b/app/src/main/res/values-zh-rTW/strings.xml @@ -7,7 +7,7 @@ (隱藏) 釘選資料夾 取消釘選資料夾 - Pin to the top + 釘選在頂端 資料夾內容全部顯示 全部資料夾 切換成資料夾檢視 @@ -43,9 +43,9 @@ 「排除資料夾」只會將選擇的資料夾與子資料夾一起從簡易相簿中隱藏,他們仍會出現在其他應用程式中。\n\n如果您要在其他應用程式中也隱藏,請使用「隱藏」功能。 移除全部 是否將排除列表中的所有資料夾都移除?這不會刪除資料夾。 - Hidden folders - Manage hidden folders - Seems like you don\'t have any folders hidden with a \".nomedia\" file. + 隱藏的資料夾 + 隱藏的資料夾 + 您似乎沒有用\".nomedia\"檔案來隱藏的資料夾 包含資料夾 @@ -122,7 +122,7 @@ 系統設定方向 裝置實際方向 圖片長寬比 - Black background and status bar at fullscreen media + 全螢幕時黑色背景和狀態欄 橫向滑動縮圖 全螢幕時自動隱藏系統介面 刪除內容後刪除空白資料夾 @@ -131,15 +131,15 @@ 將全螢幕選單的分享取代為旋轉 全螢幕時顯示詳細資訊 管理詳細資訊 - Allow one finger zoom at fullscreen media - Allow instantly changing media by clicking on screen sides - Replace deep zoomable images with better quality ones - Hide extended details when status bar is hidden + 全螢幕時允許單指縮放 + 允許點擊螢幕邊緣來快速切換媒體檔案 + 可深度縮放的圖片用品質更佳的來取代 + 狀態欄隱藏時,同時隱藏詳細資訊 - Thumbnails - Fullscreen media - Extended details + 縮圖 + 全螢幕媒體檔案 + 詳細資訊 From fdc6692e6547b552e144edcb287195b060846b52 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Solatec=20Inform=C3=A0tica?= <35220662+Solatec@users.noreply.github.com> Date: Tue, 30 Jan 2018 12:20:37 +0100 Subject: [PATCH 14/19] Update strings.xml --- app/src/main/res/values-ca/strings.xml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/src/main/res/values-ca/strings.xml b/app/src/main/res/values-ca/strings.xml index 3a9d14765..fae7b6b0a 100644 --- a/app/src/main/res/values-ca/strings.xml +++ b/app/src/main/res/values-ca/strings.xml @@ -133,13 +133,13 @@ Gestioneu els detalls ampliats Permet fer zoom amb un sol dit a pantalla complerta Permet canviar els mitjans de manera instantània fent clic als costats de la pantalla - Replace deep zoomable images with better quality ones - Hide extended details when status bar is hidden + Substituïr imatges ampliades per les de millor quialitat + Amaga els detalls estesos quan la barra d'estat està amagada Miniatures Mitjans a pantalla completa - Extended details + Detalls estesos From 37a26d46fdf5bd5f579845c263dc571afd40875e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Solatec=20Inform=C3=A0tica?= <35220662+Solatec@users.noreply.github.com> Date: Tue, 30 Jan 2018 12:22:34 +0100 Subject: [PATCH 15/19] Update strings.xml --- app/src/main/res/values-es/strings.xml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/src/main/res/values-es/strings.xml b/app/src/main/res/values-es/strings.xml index 48d62891a..031a2c97d 100644 --- a/app/src/main/res/values-es/strings.xml +++ b/app/src/main/res/values-es/strings.xml @@ -133,13 +133,13 @@ Administrar detalles ampliados Permitir zoom con un dedo en pantalla completa Permitir el cambio instantáneo de medios haciendo clic en los lados de la pantalla - Replace deep zoomable images with better quality ones - Hide extended details when status bar is hidden + Reemplace las imágenes con mucho zoom por otras de mejor calidad + Ocultar detalles ampliados cuando la barra de estado está oculta Miniaturas Medios a pantalla compelta - Extended details + Detalles ampliados From f113b22900609c55336742a86261bd111aea7ddd Mon Sep 17 00:00:00 2001 From: Pzqqt <821026875@qq.com> Date: Wed, 31 Jan 2018 18:10:31 +0800 Subject: [PATCH 16/19] Update strings.xml --- app/src/main/res/values-zh-rCN/strings.xml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/src/main/res/values-zh-rCN/strings.xml b/app/src/main/res/values-zh-rCN/strings.xml index 31a2665d4..9989b6f9d 100644 --- a/app/src/main/res/values-zh-rCN/strings.xml +++ b/app/src/main/res/values-zh-rCN/strings.xml @@ -134,12 +134,12 @@ 单指缩放 通过单击屏幕边缘来切换媒体 用质量更好的图像替换可深度缩放的图像 - Hide extended details when status bar is hidden + 当状态栏隐藏时隐藏扩展详情 缩略图 全屏显示媒体 - Extended details + 扩展详情 From 5a24c92c962063638ca6a2669d6153ec68f4952a Mon Sep 17 00:00:00 2001 From: tibbi Date: Wed, 31 Jan 2018 19:01:57 +0100 Subject: [PATCH 17/19] shorten the search close code --- .../simplemobiletools/gallery/activities/MediaActivity.kt | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/app/src/main/kotlin/com/simplemobiletools/gallery/activities/MediaActivity.kt b/app/src/main/kotlin/com/simplemobiletools/gallery/activities/MediaActivity.kt index 49c35da3d..8a1f25b9c 100644 --- a/app/src/main/kotlin/com/simplemobiletools/gallery/activities/MediaActivity.kt +++ b/app/src/main/kotlin/com/simplemobiletools/gallery/activities/MediaActivity.kt @@ -9,7 +9,6 @@ import android.graphics.Bitmap import android.net.Uri import android.os.Bundle import android.os.Handler -import android.support.v4.view.MenuItemCompat import android.support.v7.widget.GridLayoutManager import android.support.v7.widget.SearchView import android.view.Menu @@ -143,9 +142,7 @@ class MediaActivity : SimpleActivity(), MediaAdapter.MediaOperationsListener { override fun onStop() { super.onStop() - if (mSearchMenuItem != null) { - MenuItemCompat.collapseActionView(mSearchMenuItem) - } + mSearchMenuItem?.collapseActionView() if (config.temporarilyShowHidden) { mTempShowHiddenHandler.postDelayed({ From 96b93c4cb2fedea253c26eaa4d40418328ec157e Mon Sep 17 00:00:00 2001 From: tibbi Date: Wed, 31 Jan 2018 19:08:18 +0100 Subject: [PATCH 18/19] remove the file cleanup --- .../com/simplemobiletools/gallery/helpers/Config.kt | 4 ---- .../simplemobiletools/gallery/helpers/Constants.kt | 1 - .../gallery/helpers/MediaFetcher.kt | 13 ------------- 3 files changed, 18 deletions(-) diff --git a/app/src/main/kotlin/com/simplemobiletools/gallery/helpers/Config.kt b/app/src/main/kotlin/com/simplemobiletools/gallery/helpers/Config.kt index 5002bf781..9f10cbaa1 100644 --- a/app/src/main/kotlin/com/simplemobiletools/gallery/helpers/Config.kt +++ b/app/src/main/kotlin/com/simplemobiletools/gallery/helpers/Config.kt @@ -316,8 +316,4 @@ class Config(context: Context) : BaseConfig(context) { var extendedDetails: Int get() = prefs.getInt(EXTENDED_DETAILS, EXT_RESOLUTION or EXT_LAST_MODIFIED or EXT_EXIF_PROPERTIES) set(extendedDetails) = prefs.edit().putInt(EXTENDED_DETAILS, extendedDetails).apply() - - var lastFileCleanup: Long - get() = prefs.getLong(LAST_FILE_CLEANUP, 0L) - set(lastFileCleanup) = prefs.edit().putLong(LAST_FILE_CLEANUP, lastFileCleanup).apply() } diff --git a/app/src/main/kotlin/com/simplemobiletools/gallery/helpers/Constants.kt b/app/src/main/kotlin/com/simplemobiletools/gallery/helpers/Constants.kt index 9d0e35873..33a95e350 100644 --- a/app/src/main/kotlin/com/simplemobiletools/gallery/helpers/Constants.kt +++ b/app/src/main/kotlin/com/simplemobiletools/gallery/helpers/Constants.kt @@ -43,7 +43,6 @@ const val VIEW_TYPE_FILES = "view_type_files" const val SHOW_EXTENDED_DETAILS = "show_extended_details" const val EXTENDED_DETAILS = "extended_details" const val HIDE_EXTENDED_DETAILS = "hide_extended_details" -const val LAST_FILE_CLEANUP = "last_file_cleanup" const val ONE_FINGER_ZOOM = "one_finger_zoom" const val ALLOW_INSTANT_CHANGE = "allow_instant_change" const val REPLACE_ZOOMABLE_IMAGES = "replace_zoomable_images" diff --git a/app/src/main/kotlin/com/simplemobiletools/gallery/helpers/MediaFetcher.kt b/app/src/main/kotlin/com/simplemobiletools/gallery/helpers/MediaFetcher.kt index e0e797f0f..f941b8f03 100644 --- a/app/src/main/kotlin/com/simplemobiletools/gallery/helpers/MediaFetcher.kt +++ b/app/src/main/kotlin/com/simplemobiletools/gallery/helpers/MediaFetcher.kt @@ -40,19 +40,6 @@ class MediaFetcher(val context: Context) { directories.remove(it) } - Thread { - val ONE_WEEK = 7 * 24 * 60 * 60 * 1000 - if (System.currentTimeMillis() - context.config.lastFileCleanup > ONE_WEEK) { - media.forEach { - val file = File(it.path) - if (!it.path.contains("/.thumbnails") && !file.exists() && file.length() == 0L) { - context.deleteFromMediaStore(file) - } - } - context.config.lastFileCleanup = System.currentTimeMillis() - } - }.start() - return directories } From fe7b425d799ab8e828ded6e25ead90147dc09a08 Mon Sep 17 00:00:00 2001 From: tibbi Date: Wed, 31 Jan 2018 19:23:03 +0100 Subject: [PATCH 19/19] store thumbnail data only if we arent loading them from cache --- .../com/simplemobiletools/gallery/activities/MainActivity.kt | 4 +++- .../simplemobiletools/gallery/activities/MediaActivity.kt | 5 ++++- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/app/src/main/kotlin/com/simplemobiletools/gallery/activities/MainActivity.kt b/app/src/main/kotlin/com/simplemobiletools/gallery/activities/MainActivity.kt index 25da562e2..6b722080a 100644 --- a/app/src/main/kotlin/com/simplemobiletools/gallery/activities/MainActivity.kt +++ b/app/src/main/kotlin/com/simplemobiletools/gallery/activities/MainActivity.kt @@ -574,7 +574,9 @@ class MainActivity : SimpleActivity(), DirectoryAdapter.DirOperationsListener { setupAdapter() } - storeDirectories() + if (!isFromCache) { + storeDirectories() + } } private fun storeDirectories() { diff --git a/app/src/main/kotlin/com/simplemobiletools/gallery/activities/MediaActivity.kt b/app/src/main/kotlin/com/simplemobiletools/gallery/activities/MediaActivity.kt index 8a1f25b9c..29b64841d 100644 --- a/app/src/main/kotlin/com/simplemobiletools/gallery/activities/MediaActivity.kt +++ b/app/src/main/kotlin/com/simplemobiletools/gallery/activities/MediaActivity.kt @@ -620,7 +620,10 @@ class MediaActivity : SimpleActivity(), MediaAdapter.MediaOperationsListener { runOnUiThread { setupAdapter() } - storeFolder() + + if (!isFromCache) { + storeFolder() + } } private fun storeFolder() {