properly store the selected widget text color
This commit is contained in:
parent
72db7e8070
commit
f2774b91fe
|
@ -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
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue