diff options
author | Matt Garnes <matt@cyngn.com> | 2015-06-25 15:02:00 -0700 |
---|---|---|
committer | Matt Garnes <matt@cyngn.com> | 2015-06-29 10:29:44 -0700 |
commit | 31559aeea6b4540bacb26e621c2ad18e0e94c0dd (patch) | |
tree | 2442375317fbb5996e5d6fc1d8b4872aef4efc80 /src/com/android/launcher3/Workspace.java | |
parent | b04fdb133dd066739440a84c79845158b2ab94ea (diff) | |
download | android_packages_apps_Trebuchet-31559aeea6b4540bacb26e621c2ad18e0e94c0dd.tar.gz android_packages_apps_Trebuchet-31559aeea6b4540bacb26e621c2ad18e0e94c0dd.tar.bz2 android_packages_apps_Trebuchet-31559aeea6b4540bacb26e621c2ad18e0e94c0dd.zip |
Hide workspace shortcuts during binding when AllApps is shown.
Previously, if All Apps was opened before the workspace items were
bound, the shortcuts would be come visible behind the app drawer when
the loading finished.
Set the alpha of the shortcuts to 0f to hide them if isAllAppsVisible()
returns true.
Change-Id: I399bf27435dfe179f64646456496b31eade864a3
Diffstat (limited to 'src/com/android/launcher3/Workspace.java')
-rw-r--r-- | src/com/android/launcher3/Workspace.java | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/com/android/launcher3/Workspace.java b/src/com/android/launcher3/Workspace.java index 48a3db6d6..bfe555a63 100644 --- a/src/com/android/launcher3/Workspace.java +++ b/src/com/android/launcher3/Workspace.java @@ -1111,6 +1111,10 @@ public class Workspace extends SmoothPagedView return mIsSwitchingState; } + public boolean isHidden() { + return mState == State.NORMAL_HIDDEN; + } + /** This differs from isSwitchingState in that we take into account how far the transition * has completed. */ public boolean isFinishedSwitchingState() { |