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:
Stevie Kideckel
2021-02-25 11:55:58 +00:00
parent c3406718ef
commit e23c866186

View File

@@ -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();
}