Skip to content

armgit / ente

Public Imported from GitHub
0

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

[mobile][photos] add orientation lock to landing screen

Priyanshu Dangare2c234ca808c3
diff --git a/mobile/apps/photos/lib/ui/home/landing_page_widget.dart b/mobile/apps/photos/lib/ui/home/landing_page_widget.dart
index d9305bd350..a154ab2967 100644
--- a/mobile/apps/photos/lib/ui/home/landing_page_widget.dart
+++ b/mobile/apps/photos/lib/ui/home/landing_page_widget.dart
@@ -43,11 +43,15 @@ class _LandingPageWidgetState extends State<LandingPageWidget> {
riveFactory: rive.Factory.flutter,
);
Future(_showAutoLogoutDialogIfRequired);
+ if (mounted) {
+ SystemChrome.setPreferredOrientations([DeviceOrientation.portraitUp]);
+ }
}
@override
void dispose() {
_onboardingAnimationLoader.dispose();
+ SystemChrome.setPreferredOrientations([]);
super.dispose();
}