diff options
author | Winson Chung <winsonc@google.com> | 2010-08-19 14:51:28 -0700 |
---|---|---|
committer | Winson Chung <winsonc@google.com> | 2010-08-19 16:00:41 -0700 |
commit | b3347bb9f4ccf41fb7043bca66c3a565bde1083b (patch) | |
tree | 939878ae215eb83c2038942613300e0744099b12 /src/com/android/launcher2/AllAppsPagedView.java | |
parent | 5a74c07c1c1a110e5ef73a596b09f53dd1d58224 (diff) | |
download | packages_apps_trebuchet-b3347bb9f4ccf41fb7043bca66c3a565bde1083b.zip packages_apps_trebuchet-b3347bb9f4ccf41fb7043bca66c3a565bde1083b.tar.gz packages_apps_trebuchet-b3347bb9f4ccf41fb7043bca66c3a565bde1083b.tar.bz2 |
Adding holographic outline for paged items (sans widgets).
Fixing possible null ptr exception in Launcher.
Change-Id: Ie625a6503299cf122e5c22852846d59e66f77414
Diffstat (limited to 'src/com/android/launcher2/AllAppsPagedView.java')
-rw-r--r-- | src/com/android/launcher2/AllAppsPagedView.java | 26 |
1 files changed, 2 insertions, 24 deletions
diff --git a/src/com/android/launcher2/AllAppsPagedView.java b/src/com/android/launcher2/AllAppsPagedView.java index 4e81937..72eeb22 100644 --- a/src/com/android/launcher2/AllAppsPagedView.java +++ b/src/com/android/launcher2/AllAppsPagedView.java @@ -44,8 +44,7 @@ import com.android.launcher.R; * with all of the user's applications. */ public class AllAppsPagedView extends PagedView - implements AllAppsView, View.OnClickListener, View.OnLongClickListener, DragSource, - PagedViewCellLayout.DimmedBitmapSetupListener { + implements AllAppsView, View.OnClickListener, View.OnLongClickListener, DragSource { private static final String TAG = "AllAppsPagedView"; private static final boolean DEBUG = false; @@ -303,7 +302,6 @@ public class AllAppsPagedView extends PagedView for (int i = curNumPages; i < numPages; ++i) { PagedViewCellLayout layout = new PagedViewCellLayout(getContext()); layout.setCellCount(mCellCountX, mCellCountY); - layout.setDimmedBitmapSetupListener(this); addView(layout); } @@ -343,7 +341,7 @@ public class AllAppsPagedView extends PagedView ApplicationInfo info = mFilteredApps.get(i); TextView text = (TextView) layout.getChildAt(index); text.setCompoundDrawablesWithIntrinsicBounds(null, - new BitmapDrawable(info.iconBitmap), null, null); + new FastBitmapDrawable(info.iconBitmap), null, null); text.setText(info.title); text.setTag(info); @@ -353,24 +351,4 @@ public class AllAppsPagedView extends PagedView params.cellY = index / mCellCountX; } } - - @Override - public void onPreUpdateDimmedBitmap(PagedViewCellLayout layout) { - // disable all children text for now - final int childCount = layout.getChildCount(); - for (int i = 0; i < childCount; ++i) { - TextView text = (TextView) layout.getChildAt(i); - text.setText(""); - } - } - @Override - public void onPostUpdateDimmedBitmap(PagedViewCellLayout layout) { - // re-enable all children text - final int childCount = layout.getChildCount(); - for (int i = 0; i < childCount; ++i) { - TextView text = (TextView) layout.getChildAt(i); - final ApplicationInfo info = (ApplicationInfo) text.getTag(); - text.setText(info.title); - } - } } |