Skip to content

armgit / ente

Public Imported from GitHub
0

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

[mob][locker] Enable the image viewer and refresh What's new (#13904)

aman-pilot8d946f7c11df
diff --git a/mobile/apps/locker/changes/image-viewer.md b/mobile/apps/locker/changes/image-viewer.md
index ea25010078..0e7f42850f 100644
--- a/mobile/apps/locker/changes/image-viewer.md
+++ b/mobile/apps/locker/changes/image-viewer.md
@@ -1 +1 @@
-- (i) Added a built-in image viewer with pinch and double-tap zoom.
+- Added a built-in image viewer with pinch and double-tap zoom.
diff --git a/mobile/apps/locker/lib/services/feature_flag_service.dart b/mobile/apps/locker/lib/services/feature_flag_service.dart
index 019e2d60eb..51f547655c 100644
--- a/mobile/apps/locker/lib/services/feature_flag_service.dart
+++ b/mobile/apps/locker/lib/services/feature_flag_service.dart
@@ -18,7 +18,6 @@ class FeatureFlagService {
bool get internalUser => _flagService.internalUser;
bool get multipartUpload => internalUser;
bool get pdfViewer => internalUser;
- bool get imageViewer => internalUser;
bool get isInternalUserDisabled =>
_preferences.getBool(_internalUserDisabled) ?? false;
diff --git a/mobile/apps/locker/lib/services/update_service.dart b/mobile/apps/locker/lib/services/update_service.dart
index c8f283ee62..0721fdeb09 100644
--- a/mobile/apps/locker/lib/services/update_service.dart
+++ b/mobile/apps/locker/lib/services/update_service.dart
@@ -16,7 +16,7 @@ class UpdateService {
static const String _updateNotificationsEnabledKey =
"update_notifications_enabled";
static const String kChangeLogShownVersionKey = "update_change_log_key";
- static const int currentChangeLogVersion = 2;
+ static const int currentChangeLogVersion = 3;
static const String _lockerIndependentPackageName =
"io.ente.locker.independent";
static const String _lockerIndependentPackagePrefix =
diff --git a/mobile/apps/locker/lib/ui/settings/widgets/change_log_strings.dart b/mobile/apps/locker/lib/ui/settings/widgets/change_log_strings.dart
index 06568ab2fd..8662a76e94 100644
--- a/mobile/apps/locker/lib/ui/settings/widgets/change_log_strings.dart
+++ b/mobile/apps/locker/lib/ui/settings/widgets/change_log_strings.dart
@@ -19,9 +19,17 @@ class ChangeLogStrings {
"en": ChangeLogStrings(
entries: [
ChangeLogEntryStrings(
- title: "Document scanner",
+ title: "Image viewer",
description:
- "Locker can now scan paper documents. Point the camera at a page and save it as a PDF, straight into the collection you pick.",
+ "Open images right in Locker. Pinch or double-tap to zoom.",
+ ),
+ ChangeLogEntryStrings(
+ title: "New upload screen",
+ description: "A fresh look for adding files to Locker.",
+ ),
+ ChangeLogEntryStrings(
+ title: "Now in Korean",
+ description: "You can now use Locker in Korean.",
),
],
),
diff --git a/mobile/apps/locker/lib/utils/file_util.dart b/mobile/apps/locker/lib/utils/file_util.dart
index 046b6d8702..286107d73c 100644
--- a/mobile/apps/locker/lib/utils/file_util.dart
+++ b/mobile/apps/locker/lib/utils/file_util.dart
@@ -400,9 +400,8 @@ class FileUtil {
file,
fallbackPath: localFile.path,
).toLowerCase();
- final flags = FeatureFlagService.instance;
- final isPdf = extension == ".pdf" && flags.pdfViewer;
- final isImage = _imageExtensions.contains(extension) && flags.imageViewer;
+ final isPdf = extension == ".pdf" && FeatureFlagService.instance.pdfViewer;
+ final isImage = _imageExtensions.contains(extension);
if (context == null || !context.mounted || !(isPdf || isImage)) {
return _openExternally(context, localFile, file);
}