Merge "Update insets for transient taskbar" into tm-qpr-dev am: 71370c58eb
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/20307069 Change-Id: I46bdfbf96ca0b0be53f04c0c4aef8f07e1a56297 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
commit
264e97feea
4 files changed
+22
-8
No files matched your search
@@ -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