π End-to-end encrypted cloud for everything.
Dart 2faandroidauthye2eeencryptionend-to-end-encryptionfluttergolanggoogle-photosgoogle-photos-alternativeiosopensourcephotosprivacyprivacy-toolstypescriptzero-knowledge
[mob] Show am/pm picker for selected locale
Neeraj Gupta852e3a59a3ae
diff --git a/mobile/lib/ui/viewer/file_details/creation_time_item_widget.dart b/mobile/lib/ui/viewer/file_details/creation_time_item_widget.dartindex 17c6908909..d4f08a66f9 100644--- a/mobile/lib/ui/viewer/file_details/creation_time_item_widget.dart+++ b/mobile/lib/ui/viewer/file_details/creation_time_item_widget.dart@@ -61,13 +61,24 @@ class _CreationTimeItemState extends State<CreationTimeItem> {return;}- final dateWithTimeResult = await DatePickerBdaya.showTime12hPicker(- context,- showTitleActions: true,- currentTime: dateResult,- locale: localeType,- theme: Theme.of(context).colorScheme.dateTimePickertheme,- );+ late DateTime? dateWithTimeResult;+ if (_showAmPmTimePicker(locale)) {+ dateWithTimeResult = await DatePickerBdaya.showTime12hPicker(+ context,+ showTitleActions: true,+ currentTime: dateResult,+ locale: localeType,+ theme: Theme.of(context).colorScheme.dateTimePickertheme,+ );+ } else {+ dateWithTimeResult = await DatePickerBdaya.showTimePicker(+ context,+ showTitleActions: true,+ currentTime: dateResult,+ locale: localeType,+ theme: Theme.of(context).colorScheme.dateTimePickertheme,+ );+ }if (dateWithTimeResult != null) {if (await editTime(context,@@ -80,6 +91,12 @@ class _CreationTimeItemState extends State<CreationTimeItem> {}}+ bool _showAmPmTimePicker(Locale locale) {+ return locale.languageCode == "en" ||+ locale.languageCode == "es" ||+ locale.languageCode == "pt";+ }+LocaleType getFromLocalString(Locale locale) {switch (locale.languageCode) {case "en":