diff options
author | Jon Miranda <jonmiranda@google.com> | 2017-06-20 10:58:36 -0700 |
---|---|---|
committer | Jon Miranda <jonmiranda@google.com> | 2017-06-23 11:47:48 -0700 |
commit | b28c4fcf351dc9f44f69253b227880758f6b460c (patch) | |
tree | 1a75f63300be881006ab64d5d39ef0b815826d85 /src/com/android/launcher3/allapps/AllAppsGridAdapter.java | |
parent | a9d721df781bf4d195eb52bba1f9a3193f7eaad4 (diff) | |
download | android_packages_apps_Trebuchet-b28c4fcf351dc9f44f69253b227880758f6b460c.tar.gz android_packages_apps_Trebuchet-b28c4fcf351dc9f44f69253b227880758f6b460c.tar.bz2 android_packages_apps_Trebuchet-b28c4fcf351dc9f44f69253b227880758f6b460c.zip |
Landscape grid changes for Workspace/All Apps.
This is the just first CL to get eyes on the changes.
Next CL will update the All Apps to be full width.
Bug: 37015359
Change-Id: I2d7ec6851fdc13b8fa654e7e2be3152330243ccc
Diffstat (limited to 'src/com/android/launcher3/allapps/AllAppsGridAdapter.java')
-rw-r--r-- | src/com/android/launcher3/allapps/AllAppsGridAdapter.java | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/src/com/android/launcher3/allapps/AllAppsGridAdapter.java b/src/com/android/launcher3/allapps/AllAppsGridAdapter.java index 9c7372f2c..d6514a83f 100644 --- a/src/com/android/launcher3/allapps/AllAppsGridAdapter.java +++ b/src/com/android/launcher3/allapps/AllAppsGridAdapter.java @@ -18,7 +18,6 @@ package com.android.launcher3.allapps; import android.content.Context; import android.content.Intent; import android.content.res.Resources; -import android.graphics.Point; import android.support.animation.DynamicAnimation; import android.support.animation.SpringAnimation; import android.support.v4.view.accessibility.AccessibilityEventCompat; @@ -298,8 +297,8 @@ public class AllAppsGridAdapter extends RecyclerView.Adapter<AllAppsGridAdapter. icon.setLongPressTimeout(ViewConfiguration.getLongPressTimeout()); icon.setOnFocusChangeListener(mIconFocusListener); - // Ensure the all apps icon height matches the workspace icons - icon.getLayoutParams().height = getCellSize().y; + // Ensure the all apps icon height matches the workspace icons in portrait mode. + icon.getLayoutParams().height = mLauncher.getDeviceProfile().allAppsCellHeightPx; return new ViewHolder(icon); case VIEW_TYPE_DISCOVERY_ITEM: AppDiscoveryItemView appDiscoveryItemView = (AppDiscoveryItemView) mLayoutInflater @@ -336,10 +335,6 @@ public class AllAppsGridAdapter extends RecyclerView.Adapter<AllAppsGridAdapter. } } - private Point getCellSize() { - return mLauncher.getDeviceProfile().getCellSize(); - } - @Override public void onBindViewHolder(ViewHolder holder, int position) { switch (holder.getItemViewType()) { |