enable SVG showing for people who upgrade the app
This commit is contained in:
parent
d2f5fdfd03
commit
75d9e03981
3 changed files with 12 additions and 0 deletions
|
@ -133,6 +133,13 @@ class MainActivity : SimpleActivity(), DirectoryOperationsListener {
|
|||
config.saveFolderGrouping(SHOW_ALL, GROUP_BY_DATE_TAKEN or GROUP_DESCENDING)
|
||||
}
|
||||
|
||||
if (!config.wasSVGShowingHandled) {
|
||||
config.wasSVGShowingHandled = true
|
||||
if (config.filterMedia and TYPE_SVGS == 0) {
|
||||
config.filterMedia += TYPE_SVGS
|
||||
}
|
||||
}
|
||||
|
||||
checkRecycleBinItems()
|
||||
}
|
||||
|
||||
|
|
|
@ -346,6 +346,10 @@ class Config(context: Context) : BaseConfig(context) {
|
|||
get() = prefs.getBoolean(WAS_RECYCLE_BIN_PINNED, false)
|
||||
set(wasRecycleBinPinned) = prefs.edit().putBoolean(WAS_RECYCLE_BIN_PINNED, wasRecycleBinPinned).apply()
|
||||
|
||||
var wasSVGShowingHandled: Boolean
|
||||
get() = prefs.getBoolean(WAS_SVG_SHOWING_HANDLED, false)
|
||||
set(wasSVGShowingHandled) = prefs.edit().putBoolean(WAS_SVG_SHOWING_HANDLED, wasSVGShowingHandled).apply()
|
||||
|
||||
var groupBy: Int
|
||||
get() = prefs.getInt(GROUP_BY, GROUP_BY_NONE)
|
||||
set(groupBy) = prefs.edit().putInt(GROUP_BY, groupBy).apply()
|
||||
|
|
|
@ -59,6 +59,7 @@ const val GROUP_BY = "group_by"
|
|||
const val EVER_SHOWN_FOLDERS = "ever_shown_folders"
|
||||
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"
|
||||
|
||||
// slideshow
|
||||
const val SLIDESHOW_INTERVAL = "slideshow_interval"
|
||||
|
|
Loading…
Reference in a new issue