mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-03-02 17:06:49 +00:00
Fix Taskbar Y-Translation with Visible Bottom Sheet
When bottom sheet is visible, such as in SUW or when app launcher pauses, the taskbar three buttons are translated upwards clashing with SUW UI. Flag: EXEMPT bugfix Bug: 358532768 Test: Manual Change-Id: I0d18bda5cb7aeae894f5058df89cc413e34c00fc
This commit is contained in:
@@ -306,6 +306,10 @@ public abstract class BaseActivity extends Activity implements ActivityContext {
|
||||
removeActivityFlags(ACTIVITY_STATE_RESUMED | ACTIVITY_STATE_DEFERRED_RESUMED);
|
||||
}
|
||||
|
||||
public boolean isPaused() {
|
||||
return !hasBeenResumed() && (mActivityFlags & ACTIVITY_STATE_DEFERRED_RESUMED) == 0;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the activity to appear as resumed.
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user