diff --git a/app/src/main/kotlin/com/simplemobiletools/gallery/pro/activities/WidgetConfigureActivity.kt b/app/src/main/kotlin/com/simplemobiletools/gallery/pro/activities/WidgetConfigureActivity.kt index 33f193181..3a9050af2 100644 --- a/app/src/main/kotlin/com/simplemobiletools/gallery/pro/activities/WidgetConfigureActivity.kt +++ b/app/src/main/kotlin/com/simplemobiletools/gallery/pro/activities/WidgetConfigureActivity.kt @@ -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 } } diff --git a/app/src/main/kotlin/com/simplemobiletools/gallery/pro/extensions/Context.kt b/app/src/main/kotlin/com/simplemobiletools/gallery/pro/extensions/Context.kt index fec3ae4df..0f3e364a4 100644 --- a/app/src/main/kotlin/com/simplemobiletools/gallery/pro/extensions/Context.kt +++ b/app/src/main/kotlin/com/simplemobiletools/gallery/pro/extensions/Context.kt @@ -224,7 +224,6 @@ fun Context.getDirectParentSubfolders(folders: HashSet, 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)