Makoto Kato
d7e66f874b
Bug 1434805 - Use LocaleList on Android N+. r=jchen
...
Android N+ has new Locale mode that selects multiple locale for font selection.
We should support it to be better locale system selection.
MozReview-Commit-ID: HndldWO5yOd
2018-06-08 17:35:43 +09:00
Zibi Braniecki
351427fb03
Bug 1431260 - Switch Android code to read multilocale.txt. r=rnewman
...
MozReview-Commit-ID: 6S4VaAvDako
2018-02-13 23:42:34 -08:00
Dylan Roeh
9ff3b5b0fc
Bug 1425898 - Call refreshLocales on the Gecko thread rather than the UI thread. r=jchen
2017-12-21 15:08:09 -06:00
Makoto Kato
57b4fe4c83
Bug 1420332 - Use system locale when system default is selected for browser locale. r=snorp
...
This is a regression by bug 1337078. When user selects system default for
Browser language, "locale" pref is empty. So BrowserLocaleManager.getLocale
always returns null. So, current locale is always en-US in Gecko code.
So we should return system locale when "locale" pref is empty.
Also, ReadSystemLocales expects language tag string for locale. Since
Locale.toString doesn't return language tag, so we should convert to it.
MozReview-Commit-ID: 3NhAkuA4HaH
2017-11-27 10:55:25 +09:00
Dylan Roeh
b0fb61ff67
Bug 1337078 - Improve the use of Android API in OSPreferences r=snorp
...
Add BrowserLocaleManager.refreshLocales, a native function which calls OSPreferences::Refresh, and BrowserLocaleManager.getLocale, which returns the current locale string. Use these in place of observing modification of the intl.locale.os pref.
2017-11-10 09:20:04 -06:00
Richard Newman
4c78fbe34e
Bug 1378501 - Tell Gecko when the OS locale changes, even when backgrounded. r=mcomella
...
This ensures that `intl.locale.os` is always set, even if the system locale changes
while Fennec is in the background.
This commit also restores `Strings.flush()` calls that are necessary to have Fennec's
non-Java UI reflect locale changes.
With this commit, the geolocation popup still doesn't behave correctly: when the
locale system is set to match OS locale, although the pref is set the locale doesn't
change. This applies in two scenarios: on first run (the popup is always English)
and when the locale changes at runtime (the popup uses an earlier OS locale).
Bug 1397925 should complete the fix.
MozReview-Commit-ID: 8zeZuYXFYdy
2017-09-08 07:54:13 -07:00
friedger
e4242f8232
Bug 1369673 - remove flag localeSwitchingIsEnabled from GeckoPreferences r=nalexander
...
remove the flag from GeckoPreferences as it is always true
MozReview-Commit-ID: J5bJwnaRFDa
2017-06-14 13:50:49 +02:00
Jim Chen
78ccd0611f
Bug 1337467 - Convert observers to bundle events; r=rbarker r=sebastian
...
Bug 1337467 - 1. Convert "Window:Resize" observer to event; r=rbarker
Bug 1337467 - 2. Convert "ScrollTo:FocusedInput" observer to event; r=rbarker
Bug 1337467 - 3. Convert "Update:CheckResult" observer to event; r=sebastian
Also remove notifyCheckUpdateResult from GeckoInterface.
Bug 1337467 - 4. Convert "GeckoView:ImportScript" observer to event; r=sebastian
Bug 1337467 - 5. Convert accessibility observers to events; r=sebastian
Bug 1337467 - 6. Convert media/casting observers to events; r=sebastian
Bug 1337467 - 7. Convert "Sanitize:ClearData" observer to event; r=sebastian
Bug 1337467 - 8. Convert "Notification:Event" observer to event; r=sebastian
Bug 1337467 - 9. Convert BrowserApp observers to events; r=sebastian
Bug 1337467 - 10. Convert Tab observers to events; r=sebastian
Bug 1337467 - 11. Convert "Passwords:Init" and "FormHistory:Init" observers to events; r=sebastian
Bug 1337467 - 12. Convert Reader observers to events; r=sebastian
Bug 1337467 - 13. Convert Distribution observers to events; r=sebastian
Bug 1337467 - 14. Convert "Fonts:Reload" observer to event; r=sebastian
Bug 1337467 - 15. Convert RecentTabsAdapter observers to events; r=sebastian
Bug 1337467 - 16. Convert "Session:Prefetch" observer to event; r=sebastian
Bug 1337467 - 17. Convert "Browser:Quit" and "FullScreen:Exit" observers to events; r=sebastian
Bug 1337467 - 18. Convert SessionStore observers to events; r=sebastian
The "Session:NotifyLocationChange" observer is sent by browser.js and
requires passing a browser reference, so it's left as an observer.
Bug 1337467 - 19. Remove unused "Tab:Screenshot:Cancel" notifyObserver call; r=me
Bug 1337467 - 20. Convert "Session:Navigate" observer to event; r=sebastian
Bug 1337467 - 21. Convert "Locale:*" observers to events; r=sebastian
Bug 1337467 - Add log for unhandled events; r=me
Add back the log indicating no listener for an event, which can be
useful when reading logcat. r=me for trivial change.
Bug 1337467 - Don't return error from EventDispatcher when OnEvent fails; r=me
When a listener's OnEvent method returns an error, continue to dispatch
to other listeners and don't return an error from the dispatch function.
This avoids unexpected errors when dispatching events. r=me for trivial
patch.
2017-03-07 12:34:04 -05:00
maliu
ca5176d2f8
Bug 1029646 - Update layout direction of configuration and DecorView, r=ahunt
...
MozReview-Commit-ID: FiDwoX45yV9
2017-01-03 15:14:59 +08:00
Jim Chen
f08147f4d4
Bug 1257319 - Convert existing broadcast events to calls; r=margaret
...
Convert existing places where we use broadcast events to use
new GeckoAppShell calls.
2016-03-23 14:42:38 -04:00
Carsten "Tomcat" Book
1e05e48e46
Backed out changeset 3e80b5052d0b (bug 1257319)
2016-03-23 10:55:10 +01:00
Jim Chen
8ca658a8c1
Bug 1257319 - Convert existing broadcast events to calls; r=margaret
...
Convert existing places where we use broadcast events to use
new GeckoAppShell calls.
2016-03-22 22:24:31 -04:00
Nick Alexander
c682759005
Bug 1107811 - Part 1: Move Java code. r=mfinkle
...
#!/bin/bash
set -x
pushd mobile/android/base
# Can't be present in glob below.
rm -rf java/org/mozilla/gecko
for i in */ ; do
# But is necessary to copy into.
mkdir -p java/org/mozilla/gecko
hg mv $i java/org/mozilla/gecko ;
done
hg mv *.java java/org/mozilla/gecko
# Move back stuff we didn't want to move.
hg mv java/org/mozilla/gecko/crashreporter crashreporter
hg mv java/org/mozilla/gecko/docs docs
hg mv java/org/mozilla/gecko/locales locales
hg mv java/org/mozilla/gecko/resources resources
popd
2015-12-04 11:51:34 -08:00