mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-02-28 15:56:49 +00:00
Revert "Revert "Update sysui flags on swipe, skip task backgrounds on opaque apps""
This reverts commit f5d5b6f00f.
Reason for revert: Can be submitted once a build with ag/4040557 is available for flashing
Change-Id: Id94440a1dc9b765bb9758af81b0567628befa283
This commit is contained in:
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user