Closed Bug 1420335 Opened 7 years ago Closed 3 years ago

OSPreferenes::ReadDateTimePattern should detect 12h/24h on Android

Categories

(Core :: Internationalization, defect, P3)

Unspecified
Android
defect

Tracking

()

RESOLVED FIXED
86 Branch
Tracking Status
firefox59 --- wontfix
firefox86 --- fixed

People

(Reporter: m_kato, Assigned: dminor)

References

Details

Attachments

(1 file)

Assignee: nobody → dminor
Status: NEW → ASSIGNED

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

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.

Flags: needinfo?(dminor)

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
Status: ASSIGNED → RESOLVED
Closed: 3 years ago
Resolution: --- → FIXED
Target Milestone: --- → 86 Branch
See Also: → 1851145
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: