properly store the selected widget text color

This commit is contained in:
tibbi 2018-12-17 13:55:48 +01:00
parent 72db7e8070
commit f2774b91fe
2 changed files with 3 additions and 3 deletions

View File

@ -98,7 +98,7 @@ class WidgetConfigureActivity : SimpleActivity() {
widgetsDB.insertOrUpdate(widget)
}.start()
storeWidgetBackground()
storeWidgetColors()
requestWidgetUpdate()
Intent().apply {
@ -108,9 +108,10 @@ class WidgetConfigureActivity : SimpleActivity() {
finish()
}
private fun storeWidgetBackground() {
private fun storeWidgetColors() {
config.apply {
widgetBgColor = mBgColor
widgetTextColor = mTextColor
}
}

View File

@ -224,7 +224,6 @@ fun Context.getDirectParentSubfolders(folders: HashSet<String>, currentPathPrefi
// /storage/emulated/0/Pictures/Images and
// /storage/emulated/0/Pictures/Screenshots,
// but /storage/emulated/0/Pictures is empty, show Images and Screenshots as separate folders, do not group them at /Pictures
val parent = File(path).parent
if (folders.contains(parent)) {
currentPaths.add(parent)