mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-03-02 17:06:49 +00:00
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:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user