High performance self-hosted photo and video management solution.
TypeScript backup-toolfluttergoogle-photosgoogle-photos-alternativejavascriptmobile-appnestjsnodejsphoto-galleryphotosphotos-managementself-hostedsveltesveltekittypescriptvideos
fix(mobile): Change read-only mode activation method to remove double click lag (#21743)
Noel Se18e4c59627e
diff --git a/i18n/en.json b/i18n/en.jsonindex e9f965d677..4d940ffadc 100644--- a/i18n/en.json+++ b/i18n/en.json@@ -1517,7 +1517,7 @@"profile_drawer_client_out_of_date_minor": "Mobile App is out of date. Please update to the latest minor version.","profile_drawer_client_server_up_to_date": "Client and Server are up-to-date","profile_drawer_github": "GitHub",- "profile_drawer_readonly_mode": "Read-only mode enabled. Double-tap the user avatar icon to exit.",+ "profile_drawer_readonly_mode": "Read-only mode enabled. Long-press the user avatar icon to exit.","profile_drawer_server_out_of_date_major": "Server is out of date. Please update to the latest major version.","profile_drawer_server_out_of_date_minor": "Server is out of date. Please update to the latest minor version.","profile_image_of_user": "Profile image of {user}",diff --git a/mobile/lib/widgets/common/app_bar_dialog/app_bar_profile_info.dart b/mobile/lib/widgets/common/app_bar_dialog/app_bar_profile_info.dartindex a9c7a467c2..00366ca580 100644--- a/mobile/lib/widgets/common/app_bar_dialog/app_bar_profile_info.dart+++ b/mobile/lib/widgets/common/app_bar_dialog/app_bar_profile_info.dart@@ -90,11 +90,11 @@ class AppBarProfileInfoBox extends HookConsumerWidget {minLeadingWidth: 50,leading: GestureDetector(onTap: pickUserProfileImage,- onDoubleTap: toggleReadonlyMode,+ onLongPress: toggleReadonlyMode,child: Stack(clipBehavior: Clip.none,children: [- buildUserProfileImage(),+ AbsorbPointer(child: buildUserProfileImage()),if (!isReadonlyModeEnabled)Positioned(bottom: -5,diff --git a/mobile/lib/widgets/common/immich_sliver_app_bar.dart b/mobile/lib/widgets/common/immich_sliver_app_bar.dartindex ee111851ad..378a31f33e 100644--- a/mobile/lib/widgets/common/immich_sliver_app_bar.dart+++ b/mobile/lib/widgets/common/immich_sliver_app_bar.dart@@ -157,7 +157,7 @@ class _ProfileIndicator extends ConsumerWidget {return InkWell(onTap: () => showDialog(context: context, useRootNavigator: false, builder: (ctx) => const ImmichAppBarDialog()),- onDoubleTap: () => toggleReadonlyMode(),+ onLongPress: () => toggleReadonlyMode(),borderRadius: const BorderRadius.all(Radius.circular(12)),child: Badge(label: Container(@@ -173,7 +173,7 @@ class _ProfileIndicator extends ConsumerWidget {? const Icon(Icons.face_outlined, size: widgetSize): Semantics(label: "logged_in_as".tr(namedArgs: {"user": user.name}),- child: UserCircleAvatar(radius: 17, size: 31, user: user),+ child: AbsorbPointer(child: UserCircleAvatar(radius: 17, size: 31, user: user)),),),);