diff options
| author | Dianne Hackborn <hackbod@google.com> | 2011-09-12 16:59:06 -0700 |
|---|---|---|
| committer | Dianne Hackborn <hackbod@google.com> | 2011-09-12 17:04:32 -0700 |
| commit | ab0f485e64418eb22f0a1d89d7064902b381e9c2 (patch) | |
| tree | 7bef4b7465521764e51c3bfc38ebd8d41721852d /core/java/android/app/ActionBar.java | |
| parent | bd5c9768c4432c6cb2bfa5f521d49ff03c087ff8 (diff) | |
Fix problems where we were allocating TypedArray when not needed.
Fixes up some recycling of TypedArray objects to reduce the
number we need to allocate during inflation etc.
Change-Id: I948dccc052997779001eaa99db2a710b04be01ae
Diffstat (limited to 'core/java/android/app/ActionBar.java')
| -rw-r--r-- | core/java/android/app/ActionBar.java | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/core/java/android/app/ActionBar.java b/core/java/android/app/ActionBar.java index 0d4a0673c68f..be00aa56b90f 100644 --- a/core/java/android/app/ActionBar.java +++ b/core/java/android/app/ActionBar.java @@ -915,6 +915,7 @@ public abstract class ActionBar { com.android.internal.R.styleable.ActionBar_LayoutParams); gravity = a.getInt( com.android.internal.R.styleable.ActionBar_LayoutParams_layout_gravity, -1); + a.recycle(); } public LayoutParams(int width, int height) { |
