mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-03-03 01:16:49 +00:00
Fix launching window bounds for immersive apps
Test: Open an immersive app (e.g. fullscreen YT video), ensure it fills the screen; open a non-immersive app (e.g. Calculator), ensure it only fills up to the top of the taskbar. Fixes: 200036592 Change-Id: Id815bbc8140cbaf1e61ac587ae1f1325e7ec5b72
This commit is contained in:
@@ -439,9 +439,9 @@ public class QuickstepTransitionManager implements OnDeviceProfileChangeListener
|
||||
4 - rotationChange);
|
||||
}
|
||||
}
|
||||
// TODO(b/196637509): don't do this for immersive apps.
|
||||
if (mDeviceProfile.isTaskbarPresentInApps) {
|
||||
bounds.bottom -= mDeviceProfile.taskbarSize;
|
||||
// Animate to above the taskbar.
|
||||
bounds.bottom -= target.contentInsets.bottom;
|
||||
}
|
||||
return bounds;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user