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

Commit 14577c4d authored by Jeff Brown's avatar Jeff Brown
Browse files

Should recycle TypedArray.

Change-Id: Ia318de37c22e4533fff631be816cee539a5cd83d
parent d5f07990
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -348,6 +348,7 @@ public class ZygoteInit {
                TypedArray ar = mResources.obtainTypedArray(
                        com.android.internal.R.array.preloaded_drawables);
                int N = preloadDrawables(runtime, ar);
                ar.recycle();
                Log.i(TAG, "...preloaded " + N + " resources in "
                        + (SystemClock.uptimeMillis()-startTime) + "ms.");

@@ -355,6 +356,7 @@ public class ZygoteInit {
                ar = mResources.obtainTypedArray(
                        com.android.internal.R.array.preloaded_color_state_lists);
                N = preloadColorStateLists(runtime, ar);
                ar.recycle();
                Log.i(TAG, "...preloaded " + N + " resources in "
                        + (SystemClock.uptimeMillis()-startTime) + "ms.");
            }