Adding hardware layers to All Apps
- splitting up the "holo" outlines and the icons into separate views
- enabling hardware layers on each of the views
diff --git a/src/com/android/launcher2/PagedViewIcon.java b/src/com/android/launcher2/PagedViewIcon.java
index 0af7b8a..702e227 100644
--- a/src/com/android/launcher2/PagedViewIcon.java
+++ b/src/com/android/launcher2/PagedViewIcon.java
@@ -65,6 +65,8 @@
private int mHoloBlurColor;
private int mHoloOutlineColor;
+ HolographicPagedViewIcon mHolographicOutlineView;
+
private static final HandlerThread sWorkerThread = new HandlerThread("pagedviewicon-helper");
static {
sWorkerThread.start();
@@ -90,7 +92,7 @@
public void run() {
icon.mHolographicOutline = holographicOutline;
icon.mIconCache.addOutline(icon.mIconCacheKey, holographicOutline);
- icon.invalidate();
+ icon.getHolographicOutlineView().invalidate();
}
});
}
@@ -127,6 +129,15 @@
setFocusable(true);
setBackgroundDrawable(null);
+ mHolographicOutlineView = new HolographicPagedViewIcon(context, this);
+ }
+
+ protected HolographicPagedViewIcon getHolographicOutlineView() {
+ return mHolographicOutlineView;
+ }
+
+ protected Bitmap getHolographicOutline() {
+ return mHolographicOutline;
}
private void queueHolographicOutlineCreation() {