Don't use TypedArray after recycling it
BUG: 13771701 Change-Id: Ib3ccb270f44cd236ce5294f8d0e01f1922005a3b
This commit is contained in:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user