diff options
author | Stephen Bird <sbird@cyngn.com> | 2015-05-21 11:00:44 -0700 |
---|---|---|
committer | Matt Garnes <matt@cyngn.com> | 2015-06-04 17:47:30 -0700 |
commit | e25ab7bd9525d7a2c67eb8a6d8e88d54940dba58 (patch) | |
tree | 5466180dd6018b13fcf2b85f2dfae336e55a80ea /src/com/android/launcher3/Workspace.java | |
parent | 5643b7f9d5d56df0d86ea5830e19ec172ee9a8f2 (diff) | |
download | android_packages_apps_Trebuchet-e25ab7bd9525d7a2c67eb8a6d8e88d54940dba58.tar.gz android_packages_apps_Trebuchet-e25ab7bd9525d7a2c67eb8a6d8e88d54940dba58.tar.bz2 android_packages_apps_Trebuchet-e25ab7bd9525d7a2c67eb8a6d8e88d54940dba58.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
Diffstat (limited to 'src/com/android/launcher3/Workspace.java')
-rw-r--r-- | src/com/android/launcher3/Workspace.java | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/com/android/launcher3/Workspace.java b/src/com/android/launcher3/Workspace.java index 7a89cbae6..6c21ccfb7 100644 --- a/src/com/android/launcher3/Workspace.java +++ b/src/com/android/launcher3/Workspace.java @@ -2175,6 +2175,13 @@ public class Workspace extends SmoothPagedView return true; } + public boolean resetOverviewMode() { + //reset overviewmode without any animations + exitOverviewMode(-1, false); + enableOverviewMode(true, -1, false); + return true; + } + public void exitOverviewMode(boolean animated) { exitOverviewMode(-1, animated); } |