Skip to content

High performance self-hosted photo and video management solution.

fix(mobile): Cannot type date format on Samsung phone (#15430)

Alexd249b63c995e
diff --git a/mobile/assets/i18n/en-US.json b/mobile/assets/i18n/en-US.json
index b85d52baa9..b584d99a6a 100644
--- a/mobile/assets/i18n/en-US.json
+++ b/mobile/assets/i18n/en-US.json
@@ -1,4 +1,6 @@
{
+ "start_date": "Start date",
+ "end_date": "End date",
"action_common_back": "Back",
"action_common_cancel": "Cancel",
"action_common_clear": "Clear",
diff --git a/mobile/lib/pages/search/search.page.dart b/mobile/lib/pages/search/search.page.dart
index 9aca7fc118..32e73f5c24 100644
--- a/mobile/lib/pages/search/search.page.dart
+++ b/mobile/lib/pages/search/search.page.dart
@@ -275,7 +275,9 @@ class SearchPage extends HookConsumerWidget {
errorInvalidText: 'invalid_date'.tr(),
fieldStartHintText: 'start_date'.tr(),
fieldEndHintText: 'end_date'.tr(),
- initialEntryMode: DatePickerEntryMode.input,
+ initialEntryMode: DatePickerEntryMode.calendar,
+ keyboardType: TextInputType.text,
+ locale: context.locale,
);
if (date == null) {