summaryrefslogtreecommitdiffstats
path: root/src/com/android/launcher3/BaseActivity.java
diff options
context:
space:
mode:
authorWinson Chung <winsonc@google.com>2018-05-04 16:54:12 -0700
committerWinson Chung <winsonc@google.com>2018-05-10 15:36:44 -0700
commit5dd46d51eda6e26830c994e9a0581d57316beb51 (patch)
treef26e2c8f3b82f470fc8f92e79ac202bf5b382075 /src/com/android/launcher3/BaseActivity.java
parent9b789cbbacd2a9db85d6de6004abfc3100bf9572 (diff)
downloadandroid_packages_apps_Trebuchet-5dd46d51eda6e26830c994e9a0581d57316beb51.tar.gz
android_packages_apps_Trebuchet-5dd46d51eda6e26830c994e9a0581d57316beb51.tar.bz2
android_packages_apps_Trebuchet-5dd46d51eda6e26830c994e9a0581d57316beb51.zip
Update sysui flags on swipe, skip task backgrounds on opaque apps
Bug: 79228291 Bug: 77984778 Bug: 78659249 Bug: 73714156 Change-Id: I3bb9ce5b4d5d16bc229a1caba99891cb87775136
Diffstat (limited to 'src/com/android/launcher3/BaseActivity.java')
-rw-r--r--src/com/android/launcher3/BaseActivity.java7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/com/android/launcher3/BaseActivity.java b/src/com/android/launcher3/BaseActivity.java
index bd38bf00d..1f70cfaa1 100644
--- a/src/com/android/launcher3/BaseActivity.java
+++ b/src/com/android/launcher3/BaseActivity.java
@@ -16,6 +16,7 @@
package com.android.launcher3;
+import static com.android.launcher3.util.SystemUiController.UI_STATE_OVERVIEW;
import static java.lang.annotation.RetentionPolicy.SOURCE;
import android.app.Activity;
@@ -153,6 +154,12 @@ public abstract class BaseActivity extends Activity {
protected void onPause() {
mActivityFlags &= ~ACTIVITY_STATE_RESUMED;
super.onPause();
+
+ // Reset the overridden sysui flags used for the task-swipe launch animation, we do this
+ // here instead of at the end of the animation because the start of the new activity does
+ // not happen immediately, which would cause us to reset to launcher's sysui flags and then
+ // back to the new app (causing a flash)
+ getSystemUiController().updateUiState(UI_STATE_OVERVIEW, 0);
}
public boolean isStarted() {