diff options
author | Winson Chung <winsonc@google.com> | 2011-05-10 15:59:42 -0700 |
---|---|---|
committer | Winson Chung <winsonc@google.com> | 2011-05-10 16:00:22 -0700 |
commit | dd2590272a8213216f24910ae1d5b0599da54e8d (patch) | |
tree | b4dc4287dadcf408e0b0b574f178414b096103bd /src/com | |
parent | 95963d614eac0dd67fd70e774c4c83b7eb676b3b (diff) | |
download | android_packages_apps_Trebuchet-dd2590272a8213216f24910ae1d5b0599da54e8d.tar.gz android_packages_apps_Trebuchet-dd2590272a8213216f24910ae1d5b0599da54e8d.tar.bz2 android_packages_apps_Trebuchet-dd2590272a8213216f24910ae1d5b0599da54e8d.zip |
Disabling isHardwareAccelerated check until we know when they can/can not be made.
Change-Id: I45b18df9512e4b1a86c0ac9893166a4855f0e2c9
Diffstat (limited to 'src/com')
-rw-r--r-- | src/com/android/launcher2/AllAppsPagedView.java | 6 | ||||
-rw-r--r-- | src/com/android/launcher2/CustomizePagedView.java | 8 |
2 files changed, 7 insertions, 7 deletions
diff --git a/src/com/android/launcher2/AllAppsPagedView.java b/src/com/android/launcher2/AllAppsPagedView.java index a9c08efa3..d9a503fbe 100644 --- a/src/com/android/launcher2/AllAppsPagedView.java +++ b/src/com/android/launcher2/AllAppsPagedView.java @@ -541,7 +541,7 @@ public class AllAppsPagedView extends PagedViewWithDraggableItems implements All // Add any necessary items for (int i = curNumPageItems; i < numPageItems; ++i) { - final boolean createHolographicOutlines = isHardwareAccelerated() && (numPages > 1); + final boolean createHolographicOutlines = (numPages > 1); TextView text = (TextView) mInflater.inflate( R.layout.all_apps_paged_view_application, layout, false); text.setOnClickListener(this); @@ -556,7 +556,7 @@ public class AllAppsPagedView extends PagedViewWithDraggableItems implements All for (int i = startIndex; i < endIndex; ++i) { final int index = i - startIndex; final ApplicationInfo info = mFilteredApps.get(i); - final boolean createHolographicOutlines = isHardwareAccelerated() && (numPages > 1); + final boolean createHolographicOutlines = (numPages > 1); PagedViewIcon icon = (PagedViewIcon) layout.getChildOnPageAt(index); icon.applyFromApplicationInfo( info, mPageViewIconCache, true, createHolographicOutlines); @@ -581,7 +581,7 @@ public class AllAppsPagedView extends PagedViewWithDraggableItems implements All } // Center-align the message - final boolean createHolographicOutlines = isHardwareAccelerated() && (numPages > 1); + final boolean createHolographicOutlines = (numPages > 1); layout.enableCenteredContent(true); layout.removeAllViewsOnPage(); layout.addViewToCellLayout(icon, -1, 0, diff --git a/src/com/android/launcher2/CustomizePagedView.java b/src/com/android/launcher2/CustomizePagedView.java index fd88eb665..e5bc8b8a5 100644 --- a/src/com/android/launcher2/CustomizePagedView.java +++ b/src/com/android/launcher2/CustomizePagedView.java @@ -929,7 +929,7 @@ public class CustomizePagedView extends PagedViewWithDraggableItems final int[] cellSpans = CellLayout.rectToCell(getResources(), info.minWidth, info.minHeight, null); final FastBitmapDrawable icon = getWidgetPreview(info); - final boolean createHolographicOutlines = isHardwareAccelerated() && (numPages > 1); + final boolean createHolographicOutlines = (numPages > 1); PagedViewWidget l = (PagedViewWidget) mInflater.inflate( R.layout.customize_paged_view_widget, layout, false); @@ -976,7 +976,7 @@ public class CustomizePagedView extends PagedViewWithDraggableItems for (int i = startIndex; i < endIndex; ++i) { final ResolveInfo info = mWallpaperList.get(i); final FastBitmapDrawable icon = getWallpaperPreview(info); - final boolean createHolographicOutlines = isHardwareAccelerated() && (numPages > 1); + final boolean createHolographicOutlines = (numPages > 1); PagedViewWidget l = (PagedViewWidget) mInflater.inflate( R.layout.customize_paged_view_wallpaper, layout, false); @@ -1014,7 +1014,7 @@ public class CustomizePagedView extends PagedViewWithDraggableItems for (int i = startIndex; i < endIndex; ++i) { ResolveInfo info = list.get(i); PendingAddItemInfo createItemInfo = new PendingAddItemInfo(); - final boolean createHolographicOutlines = isHardwareAccelerated() && (numPages > 1); + final boolean createHolographicOutlines = (numPages > 1); PagedViewIcon icon = (PagedViewIcon) mInflater.inflate( R.layout.customize_paged_view_item, layout, false); @@ -1075,7 +1075,7 @@ public class CustomizePagedView extends PagedViewWithDraggableItems layout.removeAllViewsOnPage(); for (int i = startIndex; i < endIndex; ++i) { final ApplicationInfo info = mApps.get(i); - final boolean createHolographicOutlines = isHardwareAccelerated() && (numPages > 1); + final boolean createHolographicOutlines = (numPages > 1); PagedViewIcon icon = (PagedViewIcon) mInflater.inflate( R.layout.all_apps_paged_view_application, layout, false); icon.applyFromApplicationInfo( |