mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-02-20 03:08:19 +00:00
Update shelf offset earlier when in gesture nav
- Provide a hint to Launcher to indicate it will be resumed when swiping home, which allows us to notify sysui before any potential pip invocation, reducing the likelyhood of two conflicting animations when entering pip Bug: 156637223 Change-Id: Iae773e1aac88bbea6f74e1d1332417b448126471
This commit is contained in:
@@ -107,10 +107,15 @@ public abstract class BaseActivity extends Activity implements LogStateProvider,
|
||||
*/
|
||||
public static final int ACTIVITY_STATE_USER_ACTIVE = 1 << 4;
|
||||
|
||||
/**
|
||||
* State flag indicating if the user will be active shortly.
|
||||
*/
|
||||
public static final int ACTIVITY_STATE_USER_WILL_BE_ACTIVE = 1 << 5;
|
||||
|
||||
/**
|
||||
* State flag indicating that a state transition is in progress
|
||||
*/
|
||||
public static final int ACTIVITY_STATE_TRANSITION_ACTIVE = 1 << 5;
|
||||
public static final int ACTIVITY_STATE_TRANSITION_ACTIVE = 1 << 6;
|
||||
|
||||
@Retention(SOURCE)
|
||||
@IntDef(
|
||||
@@ -180,6 +185,7 @@ public abstract class BaseActivity extends Activity implements LogStateProvider,
|
||||
@Override
|
||||
protected void onResume() {
|
||||
addActivityFlags(ACTIVITY_STATE_RESUMED | ACTIVITY_STATE_USER_ACTIVE);
|
||||
removeActivityFlags(ACTIVITY_STATE_USER_WILL_BE_ACTIVE);
|
||||
super.onResume();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user