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

Commit 084e436d authored by Siyamed Sinir's avatar Siyamed Sinir Committed by Android (Google) Code Review
Browse files

Merge "Prevent access for Typeface.setDefault"

parents 2c282d75 3a24ff34
Loading
Loading
Loading
Loading
+6 −1
Original line number Diff line number Diff line
@@ -175,7 +175,12 @@ public class Typeface {
    private int[] mSupportedAxes;
    private static final int[] EMPTY_AXES = {};

    @UnsupportedAppUsage
    /**
     * Please use font in xml and also your application global theme to change the default Typeface.
     * android:textViewStyle and its attribute android:textAppearance can be used in order to change
     * typeface and other text related properties.
     */
    @UnsupportedAppUsage(maxTargetSdk = Build.VERSION_CODES.P)
    private static void setDefault(Typeface t) {
        sDefaultTypeface = t;
        nativeSetDefault(t.native_instance);