enable SVG showing for people who upgrade the app
This commit is contained in:
parent
d2f5fdfd03
commit
75d9e03981
|
@ -133,6 +133,13 @@ class MainActivity : SimpleActivity(), DirectoryOperationsListener {
|
||||||
config.saveFolderGrouping(SHOW_ALL, GROUP_BY_DATE_TAKEN or GROUP_DESCENDING)
|
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()
|
checkRecycleBinItems()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -346,6 +346,10 @@ class Config(context: Context) : BaseConfig(context) {
|
||||||
get() = prefs.getBoolean(WAS_RECYCLE_BIN_PINNED, false)
|
get() = prefs.getBoolean(WAS_RECYCLE_BIN_PINNED, false)
|
||||||
set(wasRecycleBinPinned) = prefs.edit().putBoolean(WAS_RECYCLE_BIN_PINNED, wasRecycleBinPinned).apply()
|
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
|
var groupBy: Int
|
||||||
get() = prefs.getInt(GROUP_BY, GROUP_BY_NONE)
|
get() = prefs.getInt(GROUP_BY, GROUP_BY_NONE)
|
||||||
set(groupBy) = prefs.edit().putInt(GROUP_BY, groupBy).apply()
|
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 EVER_SHOWN_FOLDERS = "ever_shown_folders"
|
||||||
const val SHOW_RECYCLE_BIN_AT_FOLDERS = "show_recycle_bin_at_folders"
|
const val SHOW_RECYCLE_BIN_AT_FOLDERS = "show_recycle_bin_at_folders"
|
||||||
const val ALLOW_ZOOMING_IMAGES = "allow_zooming_images"
|
const val ALLOW_ZOOMING_IMAGES = "allow_zooming_images"
|
||||||
|
const val WAS_SVG_SHOWING_HANDLED = "was_svg_showing_handled"
|
||||||
|
|
||||||
// slideshow
|
// slideshow
|
||||||
const val SLIDESHOW_INTERVAL = "slideshow_interval"
|
const val SLIDESHOW_INTERVAL = "slideshow_interval"
|
||||||
|
|
Loading…
Reference in New Issue