summaryrefslogtreecommitdiffstats
path: root/src/com/android/launcher3/ItemInfo.java
diff options
context:
space:
mode:
authorStephen Bird <sbird@cyngn.com>2015-05-21 11:00:44 -0700
committerMatt Garnes <matt@cyngn.com>2015-06-05 00:53:08 +0000
commit641637f927e833cc2b50064d001aafd77de16508 (patch)
treeb233fbd01b7a8d5a11bd4ad6dbd6dc8703e57229 /src/com/android/launcher3/ItemInfo.java
parent3e0d08d7ff471efc3ffd1b73135243fc5d0afc09 (diff)
downloadandroid_packages_apps_Trebuchet-641637f927e833cc2b50064d001aafd77de16508.tar.gz
android_packages_apps_Trebuchet-641637f927e833cc2b50064d001aafd77de16508.tar.bz2
android_packages_apps_Trebuchet-641637f927e833cc2b50064d001aafd77de16508.zip
Move icons to fit within Dynamic grid upon resize.
If the dynamic grid is made smaller, currently icons will simply be hidden from view. Instead, create extra screens and squeeze the icons in so that they will all be visible upon resize. In some cases, icons can end up creating screens when it's not necessary we should revisit this at a later time and look into making these icons show up in a more expected place. Change-Id: I9a46f1ac45c1a04e252ed8943afcfe952df1392d (cherry picked from commit e25ab7bd9525d7a2c67eb8a6d8e88d54940dba58)
Diffstat (limited to 'src/com/android/launcher3/ItemInfo.java')
-rw-r--r--src/com/android/launcher3/ItemInfo.java6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/com/android/launcher3/ItemInfo.java b/src/com/android/launcher3/ItemInfo.java
index 09b77f756..91af5873e 100644
--- a/src/com/android/launcher3/ItemInfo.java
+++ b/src/com/android/launcher3/ItemInfo.java
@@ -113,6 +113,12 @@ public class ItemInfo {
CharSequence contentDescription;
/**
+ * Indicates that this item has had it's position changed
+ * because the grid size was made smaller and it could no longer fit.
+ */
+ public boolean wasMovedDueToReducedSpace = false;
+
+ /**
* The position of the item in a drag-and-drop operation.
*/
int[] dropPos = null;