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

Commit 874d4559 authored by John Reck's avatar John Reck Committed by Android (Google) Code Review
Browse files

Merge "Workaround for custom TypedArray injectors"

parents 8e780f4c abd917d1
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -79,7 +79,7 @@ public class TypedArray {
        final int dataLen = len * AssetManager.STYLE_NUM_ENTRIES;
        final int indicesLen = len + 1;
        final VMRuntime runtime = VMRuntime.getRuntime();
        if (mData == null || mData.length < dataLen) {
        if (mDataAddress == 0 || mData.length < dataLen) {
            mData = (int[]) runtime.newNonMovableArray(int.class, dataLen);
            mDataAddress = runtime.addressOf(mData);
            mIndices = (int[]) runtime.newNonMovableArray(int.class, indicesLen);