From: uazo Date: Wed, 6 Jul 2022 09:37:25 +0000 Subject: Remove preload of com.google.android.gms.fonts Original License: GPL-2.0-or-later - https://spdx.org/licenses/GPL-2.0-or-later.html License: GPL-3.0-only - https://spdx.org/licenses/GPL-3.0-only.html --- chrome/android/java/res_base/font/chrome_google_sans.xml | 8 +------- .../java/res_base/font/chrome_google_sans_bold.xml | 8 +------- .../java/res_base/font/chrome_google_sans_medium.xml | 8 +------- .../org/chromium/chrome/browser/fonts/FontPreloader.java | 1 + 4 files changed, 4 insertions(+), 21 deletions(-) diff --git a/chrome/android/java/res_base/font/chrome_google_sans.xml b/chrome/android/java/res_base/font/chrome_google_sans.xml --- a/chrome/android/java/res_base/font/chrome_google_sans.xml +++ b/chrome/android/java/res_base/font/chrome_google_sans.xml @@ -8,10 +8,4 @@ found in the LICENSE file. + tools:ignore="FontValidationError,FontValidationWarning,UnusedResources"/> diff --git a/chrome/android/java/res_base/font/chrome_google_sans_bold.xml b/chrome/android/java/res_base/font/chrome_google_sans_bold.xml --- a/chrome/android/java/res_base/font/chrome_google_sans_bold.xml +++ b/chrome/android/java/res_base/font/chrome_google_sans_bold.xml @@ -8,10 +8,4 @@ found in the LICENSE file. + tools:ignore="FontValidationError,FontValidationWarning,UnusedResources"/> diff --git a/chrome/android/java/res_base/font/chrome_google_sans_medium.xml b/chrome/android/java/res_base/font/chrome_google_sans_medium.xml --- a/chrome/android/java/res_base/font/chrome_google_sans_medium.xml +++ b/chrome/android/java/res_base/font/chrome_google_sans_medium.xml @@ -8,10 +8,4 @@ found in the LICENSE file. + tools:ignore="FontValidationError,FontValidationWarning,UnusedResources"/> diff --git a/chrome/android/java/src/org/chromium/chrome/browser/fonts/FontPreloader.java b/chrome/android/java/src/org/chromium/chrome/browser/fonts/FontPreloader.java --- a/chrome/android/java/src/org/chromium/chrome/browser/fonts/FontPreloader.java +++ b/chrome/android/java/src/org/chromium/chrome/browser/fonts/FontPreloader.java @@ -84,6 +84,7 @@ public class FontPreloader { mThreadChecker.assertOnValidThread(); if (!mInitialized) { mInitialized = true; + if ((true)) return; context = context.getApplicationContext(); OnFontCallback callback = new OnFontCallback(); for (int font : mFonts) { -- 2.25.1