Recycle obtained TypedArrays
Bug: 218835043 Test: make Change-Id: I2c19ca3b6e4773de533cceac6b5341ae964b4fd4
This commit is contained in:
@@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user