diff options
author | Jorge Ruesga <jorge@ruesga.com> | 2015-10-24 00:02:45 +0200 |
---|---|---|
committer | Jorge Ruesga <jorge@ruesga.com> | 2015-10-24 00:47:31 +0200 |
commit | e0fe49585371095e9942afa53819fc27b502a09e (patch) | |
tree | 28c1bd5afcf8498ec1e4ed58edc6a58fbb583420 /src/com/android/launcher3/Workspace.java | |
parent | 9d7e6619afbe6f402ff86d395909f75448893713 (diff) | |
download | android_packages_apps_Trebuchet-e0fe49585371095e9942afa53819fc27b502a09e.tar.gz android_packages_apps_Trebuchet-e0fe49585371095e9942afa53819fc27b502a09e.tar.bz2 android_packages_apps_Trebuchet-e0fe49585371095e9942afa53819fc27b502a09e.zip |
trebuchet: ensure not overlaping shorcuts and drop items when searchbar is invisible
If searchbar is hidden (via settings) in portrait mode in no tablets devices, the first row
of shortcuts overlaps the drop target view, which made impossible to positioning the
drag shorcut in the same cell because is ocuppied by the remove drop target.
This change, in the conditions described previously, animates the workspace to
ensure the drop search bar has enough space without overlapping the workspace layout.
Also give an extra padding (edgeMarginPx) to the workspace when searchbar is present.
Actually, the search bar and the first row of shortcut icons are too much closed.
Change-Id: I9bc5e42852b83a5445beb01bd3bdece9f82074b5
Signed-off-by: Jorge Ruesga <jorge@ruesga.com>
Diffstat (limited to 'src/com/android/launcher3/Workspace.java')
-rw-r--r-- | src/com/android/launcher3/Workspace.java | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/com/android/launcher3/Workspace.java b/src/com/android/launcher3/Workspace.java index ad045ccf4..71407b9fc 100644 --- a/src/com/android/launcher3/Workspace.java +++ b/src/com/android/launcher3/Workspace.java @@ -2256,6 +2256,7 @@ public class Workspace extends SmoothPagedView State finalState = Workspace.State.OVERVIEW; if (!enable) { finalState = Workspace.State.NORMAL; + mLauncher.bindSearchBar(); } Animator workspaceAnim = getChangeStateAnimation(finalState, animated, 0, snapPage); |