summaryrefslogtreecommitdiffstats
path: root/src/com/android/launcher3/FolderIcon.java
diff options
context:
space:
mode:
authorDaniel Sandler <dsandler@android.com>2013-07-31 00:14:58 -0400
committerDaniel Sandler <dsandler@android.com>2013-07-31 00:14:58 -0400
commit24ad0f0aad174b077e80b10d1f814ff9e9eb92e4 (patch)
tree2ded7bedea5a1f3b69183c7b26713cdee47a80dc /src/com/android/launcher3/FolderIcon.java
parent18350f2dc483a92429f0b35c15ffd33a8ae41098 (diff)
downloadandroid_packages_apps_Trebuchet-24ad0f0aad174b077e80b10d1f814ff9e9eb92e4.tar.gz
android_packages_apps_Trebuchet-24ad0f0aad174b077e80b10d1f814ff9e9eb92e4.tar.bz2
android_packages_apps_Trebuchet-24ad0f0aad174b077e80b10d1f814ff9e9eb92e4.zip
Remove unnecessary FolderRing bitmaps.
Bug: 10097530 Change-Id: Ic791d5c36b16474e1ab0a800e18aec802755dd67
Diffstat (limited to 'src/com/android/launcher3/FolderIcon.java')
-rw-r--r--src/com/android/launcher3/FolderIcon.java9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/com/android/launcher3/FolderIcon.java b/src/com/android/launcher3/FolderIcon.java
index 92f126c3f..fa713a41a 100644
--- a/src/com/android/launcher3/FolderIcon.java
+++ b/src/com/android/launcher3/FolderIcon.java
@@ -27,6 +27,7 @@ import android.graphics.Color;
import android.graphics.PorterDuff;
import android.graphics.Rect;
import android.graphics.drawable.Drawable;
+import android.os.Looper;
import android.os.Parcelable;
import android.util.AttributeSet;
import android.view.LayoutInflater;
@@ -167,8 +168,6 @@ public class FolderIcon extends LinearLayout implements FolderListener {
public float mOuterRingSize;
public float mInnerRingSize;
public FolderIcon mFolderIcon = null;
- public Drawable mOuterRingDrawable = null;
- public Drawable mInnerRingDrawable = null;
public static Drawable sSharedOuterRingDrawable = null;
public static Drawable sSharedInnerRingDrawable = null;
public static int sPreviewSize = -1;
@@ -180,12 +179,14 @@ public class FolderIcon extends LinearLayout implements FolderListener {
public FolderRingAnimator(Launcher launcher, FolderIcon folderIcon) {
mFolderIcon = folderIcon;
Resources res = launcher.getResources();
- mOuterRingDrawable = res.getDrawable(R.drawable.portal_ring_outer_holo);
- mInnerRingDrawable = res.getDrawable(R.drawable.portal_ring_inner_holo);
// We need to reload the static values when configuration changes in case they are
// different in another configuration
if (sStaticValuesDirty) {
+ if (Looper.myLooper() != Looper.getMainLooper()) {
+ throw new RuntimeException("FolderRingAnimator loading drawables on non-UI thread "
+ + Thread.currentThread());
+ }
sPreviewSize = res.getDimensionPixelSize(R.dimen.folder_preview_size);
sPreviewPadding = res.getDimensionPixelSize(R.dimen.folder_preview_padding);
sSharedOuterRingDrawable = res.getDrawable(R.drawable.portal_ring_outer_holo);