diff options
author | Dan Sandler <dsandler@android.com> | 2014-07-21 21:07:15 -0400 |
---|---|---|
committer | Dan Sandler <dsandler@android.com> | 2014-07-21 21:07:15 -0400 |
commit | 7dea0eeb06be592568ecbc372f36d44a9a3a77e3 (patch) | |
tree | 93117e839a95d69ee45fa505fa8dd42585ad0906 /packages/SystemUI/src/com/android | |
parent | 603862517569cbebed9a7bd231c3fb80292d4bcd (diff) | |
download | frameworks_base-7dea0eeb06be592568ecbc372f36d44a9a3a77e3.zip frameworks_base-7dea0eeb06be592568ecbc372f36d44a9a3a77e3.tar.gz frameworks_base-7dea0eeb06be592568ecbc372f36d44a9a3a77e3.tar.bz2 |
Old habits die hard.
Bug: 16458225
Change-Id: Ie5edebbb406412ed5643fda65ab94e92a86b217e
Diffstat (limited to 'packages/SystemUI/src/com/android')
-rw-r--r-- | packages/SystemUI/src/com/android/systemui/statusbar/phone/PhoneStatusBar.java | 22 |
1 files changed, 3 insertions, 19 deletions
diff --git a/packages/SystemUI/src/com/android/systemui/statusbar/phone/PhoneStatusBar.java b/packages/SystemUI/src/com/android/systemui/statusbar/phone/PhoneStatusBar.java index fb0f1c1..86bb202 100644 --- a/packages/SystemUI/src/com/android/systemui/statusbar/phone/PhoneStatusBar.java +++ b/packages/SystemUI/src/com/android/systemui/statusbar/phone/PhoneStatusBar.java @@ -71,7 +71,6 @@ import android.os.RemoteException; import android.os.SystemClock; import android.os.UserHandle; import android.provider.Settings; -import android.provider.Settings.SettingNotFoundException; import android.service.notification.NotificationListenerService.RankingMap; import android.service.notification.StatusBarNotification; import android.util.ArraySet; @@ -1598,24 +1597,8 @@ public class PhoneStatusBar extends BaseStatusBar implements DemoMode, updateMediaMetaData(metaDataChanged); } - private void removeAndRecycleImageViewDrawable(ImageView iv) { - Bitmap oldBitmap = null; - final Drawable drawable = iv.getDrawable(); - if (drawable != null && drawable instanceof BitmapDrawable) { - oldBitmap = ((BitmapDrawable) drawable).getBitmap(); - } - iv.animate().cancel(); - iv.setImageDrawable(null); - if (oldBitmap != null) { - if (DEBUG_MEDIA) { - Log.v(TAG, "DEBUG_MEDIA: recycling bitmap " + oldBitmap + " from ImageView " + iv); - } - oldBitmap.recycle(); - } - } - /** - * Hide the album artwork that is fading out and release its memory. + * Hide the album artwork that is fading out and release its bitmap. */ private Runnable mHideBackdropFront = new Runnable() { @Override @@ -1624,7 +1607,8 @@ public class PhoneStatusBar extends BaseStatusBar implements DemoMode, Log.v(TAG, "DEBUG_MEDIA: removing fade layer"); } mBackdropFront.setVisibility(View.INVISIBLE); - removeAndRecycleImageViewDrawable(mBackdropFront); + mBackdropFront.animate().cancel(); + mBackdropFront.setImageDrawable(null); } }; |