summaryrefslogtreecommitdiffstats
path: root/src/com/android/launcher3/DeviceProfile.java
diff options
context:
space:
mode:
authorWinson Chung <winsonc@google.com>2015-05-05 17:21:58 -0700
committerWinson Chung <winsonc@google.com>2015-05-06 20:37:10 -0700
commit83f59abc9c566da5deb98afe7ea35cfb061f2920 (patch)
treee58dc1258700ee73674b6018f243010bb2591eb6 /src/com/android/launcher3/DeviceProfile.java
parent04ac4faab0336e30f0879311432a2377e2631df1 (diff)
downloadandroid_packages_apps_Trebuchet-83f59abc9c566da5deb98afe7ea35cfb061f2920.tar.gz
android_packages_apps_Trebuchet-83f59abc9c566da5deb98afe7ea35cfb061f2920.tar.bz2
android_packages_apps_Trebuchet-83f59abc9c566da5deb98afe7ea35cfb061f2920.zip
Explorations in dense grids for all apps.
- Adds sticky section headers - Removing AppsListAdapter - Adding search bar field - Subtitle filtering Bug: 20222023 Change-Id: I1eaef701b5d68f475615f09d86561eacc91c937f
Diffstat (limited to 'src/com/android/launcher3/DeviceProfile.java')
-rw-r--r--src/com/android/launcher3/DeviceProfile.java7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/com/android/launcher3/DeviceProfile.java b/src/com/android/launcher3/DeviceProfile.java
index deb807501..918517ebd 100644
--- a/src/com/android/launcher3/DeviceProfile.java
+++ b/src/com/android/launcher3/DeviceProfile.java
@@ -428,6 +428,13 @@ public class DeviceProfile {
}
public boolean updateAppsViewNumCols(Resources res, int containerWidth) {
+ if (AppsContainerView.GRID_HIDE_SECTION_HEADERS) {
+ if (appsViewNumCols != allAppsNumCols) {
+ appsViewNumCols = allAppsNumCols;
+ return true;
+ }
+ return false;
+ }
int appsViewLeftMarginPx =
res.getDimensionPixelSize(R.dimen.apps_grid_view_start_margin);
int availableAppsWidthPx = (containerWidth > 0) ? containerWidth : availableWidthPx;