Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 62b641f4 authored by Seigo Nonaka's avatar Seigo Nonaka
Browse files

Stop logspam of missing fonts.

Some system fonts may not be there because of saving storages, e.g.
on Watch OS. Stop logging missing fonts error.

Bug: 135419244
Test: N/A
Change-Id: I358f45aee35f25911a29ce272ebd0398561d8864
parent 535bb718
Loading
Loading
Loading
Loading
+0 −2
Original line number Diff line number Diff line
@@ -21,7 +21,6 @@ import android.annotation.UnsupportedAppUsage;
import android.content.res.AssetManager;
import android.graphics.fonts.FontVariationAxis;
import android.text.TextUtils;
import android.util.Log;

import dalvik.annotation.optimization.CriticalNative;

@@ -145,7 +144,6 @@ public class FontFamily {
            }
            return nAddFont(mBuilderPtr, fontBuffer, ttcIndex, weight, italic);
        } catch (IOException e) {
            Log.e(TAG, "Error mapping font file " + path);
            return false;
        }
    }
+0 −1
Original line number Diff line number Diff line
@@ -105,7 +105,6 @@ public final class SystemFonts {
            final long fontSize = fileChannel.size();
            return fileChannel.map(FileChannel.MapMode.READ_ONLY, 0, fontSize);
        } catch (IOException e) {
            Log.e(TAG, "Error mapping font file " + fullPath);
            return null;
        }
    }