store if hide/exclude folder tooltip was shown in prefs
This commit is contained in:
parent
1e37c47bd0
commit
0a649df9c3
2 changed files with 10 additions and 0 deletions
|
@ -22,6 +22,14 @@ class Config(context: Context) : BaseConfig(context) {
|
|||
get() = prefs.getInt(DIRECTORY_SORT_ORDER, SORT_BY_DATE_MODIFIED or SORT_DESCENDING)
|
||||
set(order) = prefs.edit().putInt(DIRECTORY_SORT_ORDER, order).apply()
|
||||
|
||||
var wasHideFolderTooltipShown: Boolean
|
||||
get() = prefs.getBoolean(HIDE_FOLDER_TOOLTIP_SHOWN, false)
|
||||
set(wasShown) = prefs.edit().putBoolean(HIDE_FOLDER_TOOLTIP_SHOWN, wasShown).apply()
|
||||
|
||||
var wasExcludeFolderTooltipShown: Boolean
|
||||
get() = prefs.getBoolean(EXCLUDE_FOLDER_TOOLTIP_SHOWN, false)
|
||||
set(wasShown) = prefs.edit().putBoolean(EXCLUDE_FOLDER_TOOLTIP_SHOWN, wasShown).apply()
|
||||
|
||||
var showHiddenFolders: Boolean
|
||||
get() = prefs.getBoolean(SHOW_HIDDEN_FOLDERS, false)
|
||||
set(showHiddenFolders) = prefs.edit().putBoolean(SHOW_HIDDEN_FOLDERS, showHiddenFolders).apply()
|
||||
|
|
|
@ -14,6 +14,8 @@ val MEDIA_COLUMN_CNT = "media_column_cnt"
|
|||
val SHOW_ALL = "show_all" // display images and videos from all folders together
|
||||
val SHOW_MEDIA = "show_media"
|
||||
val SAVE_FOLDER_PREFIX = "folder_"
|
||||
val HIDE_FOLDER_TOOLTIP_SHOWN = "hide_folder_tooltip_shown"
|
||||
val EXCLUDE_FOLDER_TOOLTIP_SHOWN = "exclude_folder_tooltip_shown"
|
||||
|
||||
val NOMEDIA = ".nomedia"
|
||||
|
||||
|
|
Loading…
Reference in a new issue