mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-02-19 18:58:19 +00:00
Update insets for transient taskbar
Bug: 252905206 Test: manual Change-Id: I03bd493dbe63274c8e90cb5e415127a1dd93e9b8
This commit is contained in:
@@ -190,8 +190,13 @@ public class TaskbarStashController implements TaskbarControllers.LoggableTaskba
|
||||
if (isPhoneMode()) {
|
||||
// DeviceProfile's taskbar vars aren't initialized w/ the flag off
|
||||
Resources resources = mActivity.getResources();
|
||||
mUnstashedHeight = resources.getDimensionPixelSize(R.dimen.taskbar_size);
|
||||
mStashedHeight = resources.getDimensionPixelOffset(R.dimen.taskbar_stashed_size);
|
||||
boolean isTransientTaskbar = DisplayController.isTransientTaskbar(mActivity);
|
||||
mUnstashedHeight = resources.getDimensionPixelSize(isTransientTaskbar
|
||||
? R.dimen.transient_taskbar_size
|
||||
: R.dimen.taskbar_size);
|
||||
mStashedHeight = resources.getDimensionPixelSize(isTransientTaskbar
|
||||
? R.dimen.transient_taskbar_stashed_size
|
||||
: R.dimen.taskbar_stashed_size);
|
||||
} else {
|
||||
mUnstashedHeight = mActivity.getDeviceProfile().taskbarSize;
|
||||
mStashedHeight = mActivity.getDeviceProfile().stashedTaskbarSize;
|
||||
@@ -344,7 +349,8 @@ public class TaskbarStashController implements TaskbarControllers.LoggableTaskba
|
||||
* @see WindowInsets.Type#systemBars()
|
||||
*/
|
||||
public int getContentHeightToReportToApps() {
|
||||
if (isPhoneMode() && !mActivity.isThreeButtonNav()) {
|
||||
if ((isPhoneMode() && !mActivity.isThreeButtonNav())
|
||||
|| DisplayController.isTransientTaskbar(mActivity)) {
|
||||
return getStashedHeight();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user