Merge "Send corrent SUW insets for taskbar portrait vs landscape" into tm-qpr-dev am: 792a827309 am: 5d84ac3640

Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/20546386

Change-Id: If3ffeb06fa79a1c6d135c2c6bd2cf4cba4a0ba48
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
Vinit Nayak
2022-11-30 01:44:02 +00:00
committed by Automerger Merge Worker
3 changed files with 15 additions and 11 deletions

View File

@@ -342,6 +342,9 @@ public class TaskbarActivityContext extends BaseTaskbarContext {
public void onConfigurationChanged(@Config int configChanges) {
mControllers.onConfigurationChanged(configChanges);
if (!mIsUserSetupComplete) {
setTaskbarWindowHeight(getSetupWindowHeight());
}
}
public boolean isThreeButtonNav() {
@@ -674,7 +677,7 @@ public class TaskbarActivityContext extends BaseTaskbarContext {
}
if (!isUserSetupComplete()) {
return resources.getDimensionPixelSize(R.dimen.taskbar_suw_frame);
return getSetupWindowHeight();
}
if (DisplayController.isTransientTaskbar(this)) {
@@ -686,6 +689,10 @@ public class TaskbarActivityContext extends BaseTaskbarContext {
return mDeviceProfile.taskbarSize + Math.max(getLeftCornerRadius(), getRightCornerRadius());
}
public int getSetupWindowHeight() {
return getResources().getDimensionPixelSize(R.dimen.taskbar_suw_frame);
}
/**
* Either adds or removes {@link WindowManager.LayoutParams#FLAG_NOT_FOCUSABLE} on the taskbar
* window.