gecko-dev/mobile/android
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
..
annotations Bug 1513395 - Upgrade com.android.tools to 26.2.1. r=snorp,geckoview-reviewers 2018-12-14 21:33:05 +00:00
app Bug 1526775 - Removed unused ui.bookmark.mobilefolder.enabled pref. r=snorp 2019-02-12 18:13:24 +00:00
base Bug 1460874 - Part 12: Enforce sensible API usage for manual font size settings. r=snorp 2019-02-14 20:43:25 +00:00
branding Bug 1519923 - Migrate about:rights to Fluent, r=jaws,flod 2019-02-08 17:36:15 +00:00
chrome Bug 1508372 - Add scrollTo and scrollBy to PanZoomController r=geckoview-reviewers,snorp,esawin 2019-02-14 19:04:06 +00:00
components Bug 1460874 - Part 8: Allow setting prefs via GeckoRuntimeSettings in Fennec, too. r=geckoview-reviewers,snorp 2019-02-14 20:42:51 +00:00
config Bug 1480006 - Enable LTO on Android CI builds. r=froydnj 2019-01-11 16:30:55 +09:00
docs Bug 1515651 - Open LP URLs specifically in Fennec. r=sdaswani 2019-01-18 18:08:39 +00:00
extensions Bug 1518283 - prohibit blank lines at the beginning and end of blocks (eslint padded-blocks) r=mossop,Standard8 2019-01-30 17:26:25 +00:00
fonts Bug 1392147 - Use Roboto instead of Clear Sans as default sans-serif font on Android, for better webcompat. r=xidorn 2018-05-23 13:51:59 +01:00
geckoview Bug 1460874 - Part 12: Enforce sensible API usage for manual font size settings. r=snorp 2019-02-14 20:43:25 +00:00
geckoview_example Bug 1522324 - Update GeckoView API to match current Gecko autoplay implementation r=geckoview-reviewers,esawin 2019-02-14 01:38:54 +00:00
gradle Bug 1509573 - Part 3: Use |make -C ... stage-package| rather than special Make target. r=snorp 2018-12-18 23:01:16 +00:00
installer Bug 1523194 - Remove XPIDL for DOMLocalization and use do_ImportModule instead. r=jfkthame,kmag 2019-02-07 01:52:45 +00:00
locales Bug 1519923 - Migrate about:rights to Fluent, r=jaws,flod 2019-02-08 17:36:15 +00:00
modules Bug 1508372 - Add scrollTo and scrollBy to PanZoomController r=geckoview-reviewers,snorp,esawin 2019-02-14 19:04:06 +00:00
services Bug 1505720 crash [@ java.lang.NullPointerException: at org.mozilla.gecko.fxa.authenticator.AndroidFxAccount.renameAccountIfNecessary(AndroidFxAccount.java)] r=Grisha 2019-01-08 10:28:20 +00:00
stumbler Bug 1494748 - Stop stumbler service when Fennec is killed. r=snorp 2018-12-12 11:53:49 -06:00
tests Bug 1252831 - remove 30boxes webcal handler as both possible and default handler, r=paolo,Dolske 2019-02-10 21:28:20 +00:00
themes Bug 1507895 - Part I, Remove the videocontrols binding r=smaug 2019-01-25 13:12:26 +00:00
thirdparty Bug 1523572 Increment Leanplum's version r=sdaswani 2019-01-29 18:29:09 +00:00
.eslintrc.js Bug 1488445 - Remove and replace obsolete ESLint rules. r=mossop 2018-09-04 18:08:43 +00:00
LICENSE
app.mozbuild Bug 1453691 - create a Fennec system addon to spoof the UA string as Chrome for Google Search and Facebook. r=rhelmer 2018-04-25 20:23:45 -04:00
build.mk
confvars.sh Bug 1502457 - Move MOZ_APP_VERSION{,_DISPLAY} to python configure. r=nalexander 2018-11-16 01:15:35 +00:00
debug_sign_tool.py Bug 1464869 - Fix flake8/pep8 issue by hand in mobile/ r=nalexander 2018-06-04 22:37:17 +02:00
gradle.configure Bug 1515662 - Make |geckoview-docs| behave like other |mach android| commands. r=nalexander 2018-12-20 20:05:39 +00:00
gradle.py Bug 1509573 - Part 1: Use |mach build ...| rather than special Make target. r=snorp 2018-12-18 23:54:08 +00:00
mach_commands.py Bug 1519489 - remove the android 7.0 arm emulator r=gbrown 2019-02-08 01:26:25 +00:00
moz.build Bug 1520470 - Update metadata for related Bugzilla product and component for geckoview. r=snorp DONTBUILD 2019-01-16 16:18:45 +02:00
moz.configure Bug 1515004 - Move --with-android-sdk to moz.configure. r=nalexander 2019-02-01 21:12:51 +00:00