mirror of
https://github.com/FossifyOrg/Gallery.git
synced 2024-11-23 04:57:59 +01:00
remove the functions related to old checking if folder content changed
This commit is contained in:
parent
73ac822661
commit
d28b95290f
3 changed files with 0 additions and 19 deletions
|
@ -590,18 +590,6 @@ class MainActivity : SimpleActivity(), DirectoryAdapter.DirOperationsListener {
|
|||
}
|
||||
}
|
||||
|
||||
private fun checkFolderContentChange(newDirs: ArrayList<Directory>) {
|
||||
newDirs.forEach {
|
||||
val storedShortDirValue = config.loadFolderMediaShort(it.path)
|
||||
if (storedShortDirValue != it.toString()) {
|
||||
config.saveFolderMediaShort(it.path, it.toString())
|
||||
if (storedShortDirValue.isNotEmpty()) {
|
||||
updateStoredFolderItems(it.path)
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
private fun storeDirectories() {
|
||||
if (!config.temporarilyShowHidden && config.tempFolderPath.isEmpty()) {
|
||||
storeDirectoryItems(mDirs)
|
||||
|
|
|
@ -137,12 +137,6 @@ class Config(context: Context) : BaseConfig(context) {
|
|||
|
||||
fun loadFolderMedia(path: String) = prefs.getString(SAVE_FOLDER_PREFIX + path, "")
|
||||
|
||||
fun saveFolderMediaShort(path: String, value: String) {
|
||||
prefs.edit().putString(SAVE_FOLDER_SHORT_PREFIX + path, value).apply()
|
||||
}
|
||||
|
||||
fun loadFolderMediaShort(path: String) = prefs.getString(SAVE_FOLDER_SHORT_PREFIX + path, "")
|
||||
|
||||
var autoplayVideos: Boolean
|
||||
get() = prefs.getBoolean(AUTOPLAY_VIDEOS, false)
|
||||
set(autoplay) = prefs.edit().putBoolean(AUTOPLAY_VIDEOS, autoplay).apply()
|
||||
|
|
|
@ -26,7 +26,6 @@ const val MEDIA_HORIZONTAL_COLUMN_CNT = "media_horizontal_column_cnt"
|
|||
const val MEDIA_LANDSCAPE_HORIZONTAL_COLUMN_CNT = "media_landscape_horizontal_column_cnt"
|
||||
const val SHOW_ALL = "show_all" // display images and videos from all folders together
|
||||
const val SAVE_FOLDER_PREFIX = "folder2_"
|
||||
const val SAVE_FOLDER_SHORT_PREFIX = "folder_short_"
|
||||
const val HIDE_FOLDER_TOOLTIP_SHOWN = "hide_folder_tooltip_shown"
|
||||
const val EXCLUDED_FOLDERS = "excluded_folders"
|
||||
const val INCLUDED_FOLDERS = "included_folders"
|
||||
|
|
Loading…
Reference in a new issue