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

Commit 2660aca4 authored by Seigo Nonaka's avatar Seigo Nonaka
Browse files

Revive old method to prevent crash internal app.

Bug: 36509029
Test: N/A
Change-Id: I4e04847de7b61a790323257c09da9a960a6689d5
parent 2c98e18c
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -142,6 +142,11 @@ public class FontFamily {
                isItalic);
    }

    // TODO: Remove once internal user stop using private API.
    private static boolean nAddFont(long builderPtr, ByteBuffer font, int ttcIndex) {
        return nAddFont(builderPtr, font, ttcIndex, -1, -1);
    }

    private static native long nInitBuilder(String lang, int variant);

    @CriticalNative