Merge "Recycle obtained TypedArrays"
This commit is contained in:
committed by
Android (Google) Code Review
commit
42da3114ed
@@ -61,6 +61,7 @@ public class RestrictedSwitchPreference extends SwitchPreference {
|
||||
|
||||
final TypedValue restrictedSwitchSummary = attributes.peekValue(
|
||||
R.styleable.RestrictedSwitchPreference_restrictedSwitchSummary);
|
||||
attributes.recycle();
|
||||
if (restrictedSwitchSummary != null
|
||||
&& restrictedSwitchSummary.type == TypedValue.TYPE_STRING) {
|
||||
if (restrictedSwitchSummary.resourceId != 0) {
|
||||
|
||||
Reference in New Issue
Block a user