Skip to content

Commit 1fa39a1

Browse files
authored
fix: apply global theme changes unconditionally (#142)
Previously, the "Apply color to all Fossify apps" didn't work if dialog message was dismissed
1 parent e10cfce commit 1fa39a1

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

commons/src/main/kotlin/org/fossify/commons/activities/CustomizationActivity.kt

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -691,16 +691,16 @@ class CustomizationActivity : BaseSimpleActivity() {
691691

692692
canAccessGlobalConfig() -> {
693693
binding.applyToAllSwitch.isChecked = true
694+
updateColorTheme(getCurrentThemeId())
695+
saveChanges(false)
694696
ConfirmationDialog(
695697
activity = this,
696698
message = "",
697699
messageId = R.string.global_theme_success,
698700
positive = R.string.ok,
699-
negative = 0
700-
) {
701-
updateColorTheme(getCurrentThemeId())
702-
saveChanges(false)
703-
}
701+
negative = 0,
702+
callback = {}
703+
)
704704
}
705705

706706
else -> {

0 commit comments

Comments
 (0)