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

Commit 0ebfffb8 authored by Nikolas Havrikov's avatar Nikolas Havrikov
Browse files

Recycle obtained TypedArrays

Bug: 218835043
Test: make
Change-Id: I2c19ca3b6e4773de533cceac6b5341ae964b4fd4
parent b0385bd9
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -217,6 +217,7 @@ public class Keyboard {
            rowEdgeFlags = a.getInt(com.android.internal.R.styleable.Keyboard_Row_rowEdgeFlags, 0);
            mode = a.getResourceId(com.android.internal.R.styleable.Keyboard_Row_keyboardMode,
                    0);
            a.recycle();
        }
    }

+2 −0
Original line number Diff line number Diff line
@@ -326,9 +326,11 @@ public class KeyboardView extends View implements View.OnClickListener {
            }
        }

        a.recycle();
        a = mContext.obtainStyledAttributes(
                com.android.internal.R.styleable.Theme);
        mBackgroundDimAmount = a.getFloat(android.R.styleable.Theme_backgroundDimAmount, 0.5f);
        a.recycle();

        mPreviewPopup = new PopupWindow(context);
        if (previewLayout != 0) {