Merge "Recycle obtained TypedArrays"

This commit is contained in:
TreeHugger Robot
2022-02-10 18:34:36 +00:00
committed by Android (Google) Code Review
2 changed files with 3 additions and 0 deletions

View File

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

View File

@@ -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) {