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

Commit 1970f570 authored by Alan Viverette's avatar Alan Viverette
Browse files

Don't use TypedArray after recycling it

BUG: 13771701
Change-Id: Ib3ccb270f44cd236ce5294f8d0e01f1922005a3b
parent e3c38a0b
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -152,11 +152,11 @@ class TimePickerDelegate extends TimePicker.AbstractTimePickerDelegate implement
        final int headerBackgroundColor = a.getColor(
                R.styleable.TimePicker_headerBackgroundColor, 0);

        a.recycle();

        final int layoutResourceId = a.getResourceId(
                R.styleable.TimePicker_internalLayout, R.layout.time_picker_holo);

        a.recycle();

        final LayoutInflater inflater = (LayoutInflater) mContext.getSystemService(
                Context.LAYOUT_INFLATER_SERVICE);