Commit f2ea327
committed
Refactor(Settings): Remove redundant theme logic in SettingsFragment
The `SettingsFragment` has been updated to simplify the theme-switching logic. Previously, it contained code to determine the dark mode status and manually apply the theme.
This logic is now handled elsewhere, so the redundant `isDark` variable, the `when` statement, and the calls to `setThemeMode` and `reloadLauncher` have been removed. The fragment now only calls `resetThemeColors` when the theme preference is changed, streamlining the settings update process.1 parent 1726177 commit f2ea327
File tree
1 file changed
+1
-10
lines changed- app/src/main/java/com/github/codeworkscreativehub/mlauncher/ui
1 file changed
+1
-10
lines changedLines changed: 1 addition & 10 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
353 | 353 | | |
354 | 354 | | |
355 | 355 | | |
356 | | - | |
357 | | - | |
358 | 356 | | |
359 | 357 | | |
360 | 358 | | |
| |||
551 | 549 | | |
552 | 550 | | |
553 | 551 | | |
554 | | - | |
555 | | - | |
556 | | - | |
557 | | - | |
558 | | - | |
559 | | - | |
560 | | - | |
561 | | - | |
| 552 | + | |
562 | 553 | | |
563 | 554 | | |
564 | 555 | | |
| |||
0 commit comments