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

Commit e23c8661 authored by Stevie Kideckel's avatar Stevie Kideckel
Browse files

Recycle the TypedArray used in AnalogClock's constructor

Test: Flashed to local device, AnalogClock widgets worked fine
Bug: 177997338
Change-Id: I58edf7643e8f701abc02ce1147a2ae718fde47c7
parent c3406718
Loading
Loading
Loading
Loading
+2 −0
Original line number Original line Diff line number Diff line
@@ -200,6 +200,8 @@ public class AnalogClock extends View {
        mTimeZone = toZoneId(a.getString(com.android.internal.R.styleable.AnalogClock_timeZone));
        mTimeZone = toZoneId(a.getString(com.android.internal.R.styleable.AnalogClock_timeZone));
        createClock();
        createClock();


        a.recycle();

        mDialWidth = mDial.getIntrinsicWidth();
        mDialWidth = mDial.getIntrinsicWidth();
        mDialHeight = mDial.getIntrinsicHeight();
        mDialHeight = mDial.getIntrinsicHeight();
    }
    }