Skip to content

armgit / ente

Public Imported from GitHub
0

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

[mob][photos] Update video loop toggle to show action instead of state

Prateek Sunal54b191ae9222
diff --git a/mobile/apps/photos/lib/l10n/intl_en.arb b/mobile/apps/photos/lib/l10n/intl_en.arb
index 660278a6fa..bc1dd39542 100644
--- a/mobile/apps/photos/lib/l10n/intl_en.arb
+++ b/mobile/apps/photos/lib/l10n/intl_en.arb
@@ -1389,8 +1389,8 @@
"appLockDescriptions": "Choose between your device's default lock screen and a custom lock screen with a PIN or password.",
"toEnableAppLockPleaseSetupDevicePasscodeOrScreen": "To enable app lock, please setup device passcode or screen lock in your system settings.",
"authToViewPasskey": "Please authenticate to view your passkey",
- "loopVideoOn": "Loop video on",
- "loopVideoOff": "Loop video off",
+ "loopVideoOn": "Disable looping",
+ "loopVideoOff": "Enable looping",
"localSyncErrorMessage": "Looks like something went wrong since local photos sync is taking more time than expected. Please reach out to our support team",
"showPerson": "Show person",
"sort": "Sort",
diff --git a/mobile/apps/photos/lib/ui/viewer/file/file_app_bar.dart b/mobile/apps/photos/lib/ui/viewer/file/file_app_bar.dart
index dfd08ef53e..72f76c8eca 100644
--- a/mobile/apps/photos/lib/ui/viewer/file/file_app_bar.dart
+++ b/mobile/apps/photos/lib/ui/viewer/file/file_app_bar.dart
@@ -317,8 +317,7 @@ class FileAppBarState extends State<FileAppBar> {
color: Theme.of(context).iconTheme.color,
),
shouldLoopVideo
- ? const SizedBox.shrink()
- : Transform.rotate(
+ ? Transform.rotate(
angle: 3.14 / 4,
child: Container(
width: 2,
@@ -328,7 +327,8 @@ class FileAppBarState extends State<FileAppBar> {
borderRadius: BorderRadius.circular(1),
),
),
- ),
+ )
+ : const SizedBox.shrink(),
],
),
),