properly store the selected widget text color
This commit is contained in:
parent
72db7e8070
commit
f2774b91fe
2 changed files with 3 additions and 3 deletions
|
@ -98,7 +98,7 @@ class WidgetConfigureActivity : SimpleActivity() {
|
||||||
widgetsDB.insertOrUpdate(widget)
|
widgetsDB.insertOrUpdate(widget)
|
||||||
}.start()
|
}.start()
|
||||||
|
|
||||||
storeWidgetBackground()
|
storeWidgetColors()
|
||||||
requestWidgetUpdate()
|
requestWidgetUpdate()
|
||||||
|
|
||||||
Intent().apply {
|
Intent().apply {
|
||||||
|
@ -108,9 +108,10 @@ class WidgetConfigureActivity : SimpleActivity() {
|
||||||
finish()
|
finish()
|
||||||
}
|
}
|
||||||
|
|
||||||
private fun storeWidgetBackground() {
|
private fun storeWidgetColors() {
|
||||||
config.apply {
|
config.apply {
|
||||||
widgetBgColor = mBgColor
|
widgetBgColor = mBgColor
|
||||||
|
widgetTextColor = mTextColor
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -224,7 +224,6 @@ fun Context.getDirectParentSubfolders(folders: HashSet<String>, currentPathPrefi
|
||||||
// /storage/emulated/0/Pictures/Images and
|
// /storage/emulated/0/Pictures/Images and
|
||||||
// /storage/emulated/0/Pictures/Screenshots,
|
// /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
|
// 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
|
val parent = File(path).parent
|
||||||
if (folders.contains(parent)) {
|
if (folders.contains(parent)) {
|
||||||
currentPaths.add(parent)
|
currentPaths.add(parent)
|
||||||
|
|
Loading…
Reference in a new issue