π End-to-end encrypted cloud for everything.
Dart 2faandroidauthye2eeencryptionend-to-end-encryptionfluttergolanggoogle-photosgoogle-photos-alternativeiosopensourcephotosprivacyprivacy-toolstypescriptzero-knowledge
Refactor
vishnukvmd226d2b69258a
diff --git a/mobile/lib/ui/home/landing_page_widget.dart b/mobile/lib/ui/home/landing_page_widget.dartindex 3516d8a008..246bf8dda2 100644--- a/mobile/lib/ui/home/landing_page_widget.dart+++ b/mobile/lib/ui/home/landing_page_widget.dart@@ -259,17 +259,18 @@ class _LandingPageWidgetState extends State<LandingPageWidget> {Future<void> _changeIcon() async {Logger("Icon").info("Initializing");- await LauncherIconSwitcher()+ final iconChanger = LauncherIconSwitcher();+ await iconChanger.initialize(['IconLight', 'IconDark', 'IconGreen'], 'IconGreen');Logger("Icon").info("Initialized");- final currentIcon = await LauncherIconSwitcher().getCurrentIcon();+ final currentIcon = await iconChanger.getCurrentIcon();Logger("Icon").info("Current Icon: " + currentIcon);if (currentIcon == 'IconLight') {- await LauncherIconSwitcher().setIcon('IconDark');+ await iconChanger.setIcon('IconDark');} else if (currentIcon == 'IconDark') {- await LauncherIconSwitcher().setIcon('IconGreen');+ await iconChanger.setIcon('IconGreen');} else {- await LauncherIconSwitcher().setIcon('IconLight');+ await iconChanger.setIcon('IconLight');}Logger("Icon").info("Changed");}