OSPreferenes::ReadDateTimePattern should detect 12h/24h on Android
Categories
(Core :: Internationalization, defect, P3)
Tracking
()
People
(Reporter: m_kato, Assigned: dminor)
References
Details
Attachments
(1 file)
Android has API for this. https://developer.android.com/reference/android/text/format/DateFormat.html#is24HourFormat(android.content.Context)
Assignee | ||
Updated•3 years ago
|
Assignee | ||
Comment 1•3 years ago
|
||
Assignee | ||
Comment 2•3 years ago
|
||
As is the case with GTK, Android provides an OS override to display times in
AM/PM or 24 hour format. This moves the code for rewriting skeletons from the
GTK specific code to OSPreferences, and calls it from the Android OSPreferences
implementation.
This was tested manually by visiting the file:/// uri. I don't believe this is
feasible to test from automation, as it would require changing Android OS settings
from within our test code.
Pushed by dminor@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/dc9229077eaa Make OSPreferences::ReadDateTimePattern check 12h/24h on Android; r=zbraniecki
Comment 4•3 years ago
|
||
Backed out changeset dc9229077eaa (bug 1420335) for security/manager* and toolkit/mozapps/* xpc failures.
Backout link: https://hg.mozilla.org/integration/autoland/rev/e47ba8d8ca308e23a3208125ef38a09e4e26708f
Failures log: https://treeherder.mozilla.org/logviewer?job_id=326701629&repo=autoland&lineNumber=1900
Please see the log, since there are too many failures to fit in a snippet.
Assignee | ||
Comment 5•3 years ago
|
||
Sorry, I'm finding it difficult to figure out which tests to run when I make changes to intl. Unfortunately mach try auto
has not been very helpful for this. In this case, it looks like we can't get an android context when running xpcshell tests, so this probably just needs a nullcheck.
Assignee | ||
Comment 6•3 years ago
|
||
Try run here: https://treeherder.mozilla.org/jobs?repo=try&revision=6759ed9a3339e1b702e5aa706a1f802d18f54863
It is necessary to check mozilla::jni::IsAvailable()
before trying to call anything jni related.
Pushed by dminor@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/bc4560067c86 Make OSPreferences::ReadDateTimePattern check 12h/24h on Android; r=zbraniecki
Comment 8•3 years ago
|
||
bugherder |
Updated•3 years ago
|
Description
•