Skip to content

armgit / ente

Public Imported from GitHub
0

πŸ’š End-to-end encrypted cloud for everything.

Persist Auth theme changes

Neeraj Gupta16ecb16688b7
diff --git a/mobile/apps/auth/lib/ui/settings/theme_switch_widget.dart b/mobile/apps/auth/lib/ui/settings/theme_switch_widget.dart
index 0232f55a5a..08e6b317f2 100644
--- a/mobile/apps/auth/lib/ui/settings/theme_switch_widget.dart
+++ b/mobile/apps/auth/lib/ui/settings/theme_switch_widget.dart
@@ -82,7 +82,9 @@ class _ThemeSwitchWidgetState extends State<ThemeSwitchWidget> {
trailingIcon: currentThemeMode == themeMode ? Icons.check : null,
trailingExtraMargin: 4,
onTap: () async {
- AdaptiveTheme.of(context).setThemeMode(themeMode);
+ final adaptiveTheme = AdaptiveTheme.of(context);
+ adaptiveTheme.setThemeMode(themeMode);
+ await adaptiveTheme.persist();
currentThemeMode = themeMode;
if (mounted) {
setState(() {});