diff options
author | TreeHugger Robot <treehugger-gerrit@google.com> | 2018-04-04 22:02:14 +0000 |
---|---|---|
committer | Android (Google) Code Review <android-gerrit@google.com> | 2018-04-04 22:02:14 +0000 |
commit | e976ca950b108b7d6a695b533b4a1ccf650e7d0e (patch) | |
tree | c04c27d9b856a61cb3c7694d17dea7b6b08bd019 /src | |
parent | 381570588cc676dca4bb61fb26642da76832ee29 (diff) | |
parent | 9800e730a2ab7469002cf971ad9c8dd92d3cf372 (diff) | |
download | android_packages_apps_Trebuchet-e976ca950b108b7d6a695b533b4a1ccf650e7d0e.tar.gz android_packages_apps_Trebuchet-e976ca950b108b7d6a695b533b4a1ccf650e7d0e.tar.bz2 android_packages_apps_Trebuchet-e976ca950b108b7d6a695b533b4a1ccf650e7d0e.zip |
Merge "Fix animations home" into ub-launcher3-master
Diffstat (limited to 'src')
-rw-r--r-- | src/com/android/launcher3/BaseActivity.java | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/src/com/android/launcher3/BaseActivity.java b/src/com/android/launcher3/BaseActivity.java index cf2d79faf..ae631a446 100644 --- a/src/com/android/launcher3/BaseActivity.java +++ b/src/com/android/launcher3/BaseActivity.java @@ -39,6 +39,9 @@ public abstract class BaseActivity extends Activity { protected SystemUiController mSystemUiController; private boolean mStarted; + // When the recents animation is running, the visibility of the Launcher is managed by the + // animation + private boolean mForceInvisible; private boolean mUserActive; public DeviceProfile getDeviceProfile() { @@ -100,6 +103,7 @@ public abstract class BaseActivity extends Activity { @Override protected void onStop() { mStarted = false; + mForceInvisible = false; super.onStop(); } @@ -126,6 +130,22 @@ public abstract class BaseActivity extends Activity { } /** + * Used to set the override visibility state, used only to handle the transition home with the + * recents animation. + * @see LauncherAppTransitionManagerImpl.getWallpaperOpenRunner() + */ + public void setForceInvisible(boolean invisible) { + mForceInvisible = invisible; + } + + /** + * @return Wether this activity should be considered invisible regardless of actual visibility. + */ + public boolean isForceInvisible() { + return mForceInvisible; + } + + /** * Sets the device profile, adjusting it accordingly in case of multi-window */ protected void setDeviceProfile(DeviceProfile dp) { |