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

Commit 64457aa1 authored by Haoyu Zhang's avatar Haoyu Zhang
Browse files

Add comments on UnsupportedAppUsage of Typeface.sDefault

Added comments and trackingBug for UnsupportedAppUsage annotation of
Typeface.sDefault.
Developers can already use theme to customize font for their app.
But it still has a huge amount of usage.
For that reason we can't put it into black list now, and further
investigate is required for future action.

Bug: 123769446
Test: atest TypefaceTest
Change-Id: I238c4dfbbf4a4df6a0c477d36560a28cf4dc081b
parent f014d01c
Loading
Loading
Loading
Loading
+7 −1
Original line number Diff line number Diff line
@@ -92,7 +92,13 @@ public class Typeface {
    /** The NORMAL style of the default monospace typeface. */
    public static final Typeface MONOSPACE;

    @UnsupportedAppUsage
    /**
     * The default {@link Typeface}s for different text styles.
     * Call {@link #defaultFromStyle(int)} to get the default typeface for the given text style.
     * It shouldn't be changed for app wide typeface settings. Please use theme and font XML for
     * the same purpose.
     */
    @UnsupportedAppUsage(trackingBug = 123769446)
    static Typeface[] sDefaults;

    /**