gecko-dev/mobile/android/base
Jan Henning 6ae3b86617 Bug 1460874 - Part 12: Enforce sensible API usage for manual font size settings. r=snorp
Modifying the manual font size settings while the GeckoFontScaleListener is
active is theoretically possible, but probably not the most sensible way of
using that API. Therefore, we prohibit it and throw an exception in that case.

There is one complication, though: The very same API is used by the font scale
listener itself in order to modify the font size settings according to the
system font scale. Therefore, we have to move the GeckoFontScaleListener into
the GeckoView package itself, so that we can provide a package-private internal
API that bypasses the above usage checks.

This means that going forward, Fennec needs to use the official GeckoView API
to communicate with the font scale listener, too. As we've moved out the Shared-
Preferences watching  in part 5, this doesn't pose any insurmountable
difficulties.

Because for a short while I encountered some strange crashes where getRuntime()
in GeckoApplication apparently returned null while trying to initialise the
listener, I'm tying its initialisation to creation of the runtime, just to be on
the safe side.

Differential Revision: https://phabricator.services.mozilla.com/D18507

--HG--
rename : mobile/android/geckoview/src/main/java/org/mozilla/gecko/GeckoFontScaleListener.java => mobile/android/geckoview/src/main/java/org/mozilla/geckoview/GeckoFontScaleListener.java
extra : moz-landing-system : lando
2019-02-14 20:43:25 +00:00
..
crashreporter/res Bug 1234008 - Recompress some png images with zopflipng r=Dolske,Grisha,jryans 2018-01-27 15:57:42 +08:00
java/org/mozilla/gecko Bug 1460874 - Part 12: Enforce sensible API usage for manual font size settings. r=snorp 2019-02-14 20:43:25 +00:00
locales/en-US Bug 1473470 - Part 3 - Remove "Saved logins" from "Clear private data" options. r=JanH 2019-01-15 11:02:33 +02:00
AdjustConstants.java.in
AndroidManifest.xml.in Bug 1518229 - Allow clear-text network traffic in Android manifest. r=nalexander 2019-01-14 18:16:19 +00:00
AppConstants.java.in Bug 1486432 Leanplum push notifications are not received on devices with Android O or above r=JanH,flod 2018-09-03 10:21:51 +00:00
FennecManifest_permissions.xml.in Bug 1518226 - Request foreground service permission. r=snorp 2019-01-28 18:32:20 +00:00
GcmAndroidManifest_permissions.xml.in
GcmAndroidManifest_services.xml.in Bug 1467840 - Use a JobIntentService for GCM token refresh; r=JanH 2018-06-26 19:04:10 +03:00
Makefile.in Bug 1515282 - Fix mobile/android artifact build bustage. r=froydnj 2018-12-19 20:35:16 +00:00
MmaAndroidManifest_services.xml.in Bug 1473518 - Abide by Android Oreo background execution limits [Leanplum after upgrade] r=nalexander 2018-07-06 13:21:27 +03:00
MmaConstants.java.in
SamsungAppStoreManifest_permissions.xml.in Bug 1466884 - Add permission needed to publish on Samsung AppStore; r=nalexander 2018-06-06 18:34:08 +03:00
WebAppFragmentRepeater.inc
WebAppManifestFragment.xml.frag.in
adjust-sdk-sandbox.token
generate_build_config.py Bug 1464869 - Fix flake8/pep8 issue by hand in mobile/ r=nalexander 2018-06-04 22:37:17 +02:00
leanplum-sdk-sandbox.token
moz.build Bug 1509573 - Part 1: Use |mach build ...| rather than special Make target. r=snorp 2018-12-18 23:54:08 +00:00
package-name.txt.in
pocket-api-sandbox.token
strings.xml.in Bug 1473470 - Part 3 - Remove "Saved logins" from "Clear private data" options. r=JanH 2019-01-15 11:02:33 +02:00