Recycle the TypedArray used in AnalogClock's constructor
Test: Flashed to local device, AnalogClock widgets worked fine Bug: 177997338 Change-Id: I58edf7643e8f701abc02ce1147a2ae718fde47c7
This commit is contained in:
@@ -200,6 +200,8 @@ public class AnalogClock extends View {
|
||||
mTimeZone = toZoneId(a.getString(com.android.internal.R.styleable.AnalogClock_timeZone));
|
||||
createClock();
|
||||
|
||||
a.recycle();
|
||||
|
||||
mDialWidth = mDial.getIntrinsicWidth();
|
||||
mDialHeight = mDial.getIntrinsicHeight();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user