Android 13接大屏时底下显示任务栏以及虚拟按键靠右问题

时间:2024-10-08 10:38:51
  • @@ -3764,7 +3764,7 @@
  • diff --git a/frameworks/base/core/res/res/values/ b/frameworks/base/core/res/res/values/
  • index 5558d4adc1..22d1f36f47 100644
  • --- a/frameworks/base/core/res/res/values/
  • +++ b/frameworks/base/core/res/res/values/
  • @@ -3764,7 +3764,7 @@
  • <!-- Controls whether the nav bar can move from the bottom to the side in landscape.
  • Only applies if the device display is not square. -->
  • - <bool name="config_navBarCanMove">true</bool>
  • + <bool name="config_navBarCanMove">false</bool>
  • <!-- Controls whether the navigation bar lets through taps. -->
  • <bool name="config_navBarTapThrough">false</bool>
  • diff --git a/frameworks/base/packages/SystemUI/shared/src/com/android/systemui/shared/recents/utilities/ b/frameworks/base/packages/SystemUI/shared/src/com/android/systemui/shared/recents/utilities/
  • index 77a13bd91b..6f9b8e0d61 100644
  • --- a/frameworks/base/packages/SystemUI/shared/src/com/android/systemui/shared/recents/utilities/
  • +++ b/frameworks/base/packages/SystemUI/shared/src/com/android/systemui/shared/recents/utilities/
  • @@ -143,7 +143,7 @@ public class Utilities {
  • float smallestWidth = dpiFromPx(((), ()),
  • ().getConfiguration().densityDpi);
  • - return smallestWidth >= TABLET_MIN_DPS;
  • + return false;//smallestWidth >= TABLET_MIN_DPS;
  • }
  • public static float dpiFromPx(float size, int densityDpi) {
  • diff --git a/packages/apps/Launcher3/quickstep/src/com/android/launcher3/taskbar/ b/packages/apps/Launcher3/quickstep/src/com/android/launcher3/taskbar/
  • index 86e191151a..f873425698 100644
  • --- a/packages/apps/Launcher3/quickstep/src/com/android/launcher3/taskbar/
  • +++ b/packages/apps/Launcher3/quickstep/src/com/android/launcher3/taskbar/
  • @@ -292,7 +292,8 @@ public class TaskbarManager {
  • destroyExistingTaskbar();
  • - boolean isTaskBarEnabled = dp != null && isTaskbarPresent(dp);
  • + boolean isTaskBarEnabled = false;//dp != null && isTaskbarPresent(dp);
  • + ("==hh isTaskBarEnabled:"+isTaskBarEnabled);
  • if (!isTaskBarEnabled) {
  • (mContext)
  • .notifyTaskbarStatus(/* visible */ false, /* stashed */ false);
  • diff --git a/packages/apps/Launcher3/src/com/android/launcher3/states/ b/packages/apps/Launcher3/src/com/android/launcher3/states/
  • index e5b4ebae1d..b9dcc698e9 100644
  • --- a/packages/apps/Launcher3/src/com/android/launcher3/states/
  • +++ b/packages/apps/Launcher3/src/com/android/launcher3/states/
  • @@ -54,7 +54,7 @@ public class RotationHelper implements OnSharedPreferenceChangeListener,
  • // original dimensions to determine if rotation is allowed of not.
  • float originalSmallestWidth = dpiFromPx((, ),
  • DENSITY_DEVICE_STABLE);
  • - return originalSmallestWidth >= MIN_TABLET_WIDTH;
  • + return false;//originalSmallestWidth >= MIN_TABLET_WIDTH;
  • }
  • public static final int REQUEST_NONE = 0;
  • diff --git a/packages/apps/Launcher3/src/com/android/launcher3/util/ b/packages/apps/Launcher3/src/com/android/launcher3/util/
  • index c52890fd18..80b8e8354a 100644
  • --- a/packages/apps/Launcher3/src/com/android/launcher3/util/
  • +++ b/packages/apps/Launcher3/src/com/android/launcher3/util/
  • @@ -378,7 +378,7 @@ public class DisplayController implements ComponentCallbacks, SafeCloseable {
  • * Returns {@code true} if the bounds represent a tablet.
  • */
  • public boolean isTablet(WindowBounds bounds) {
  • - return smallestSizeDp(bounds) >= MIN_TABLET_WIDTH;
  • + return false;//smallestSizeDp(bounds) >= MIN_TABLET_WIDTH;
  • }
  • /**
  • diff --git a/packages/apps/Launcher3/src/com/android/launcher3/util/window/ b/packages/apps/Launcher3/src/com/android/launcher3/util/window/
  • index fb2ae732b7..5af6596e99 100644
  • --- a/packages/apps/Launcher3/src/com/android/launcher3/util/window/
  • +++ b/packages/apps/Launcher3/src/com/android/launcher3/util/window/
  • @@ -145,7 +145,7 @@ public class WindowManagerProxy implements ResourceBasedOverride {
  • Resources systemRes = ();
  • Configuration config = ();
  • - boolean isTablet = > MIN_TABLET_WIDTH;
  • + boolean isTablet = false;// > MIN_TABLET_WIDTH;
  • boolean isGesture = isGestureNav(context);
  • boolean isPortrait = > ;
  • @@ -208,7 +208,7 @@ public class WindowManagerProxy implements ResourceBasedOverride {
  • systemRes = (conf).getResources();
  • }
  • - boolean isTablet = swDp >= MIN_TABLET_WIDTH;
  • + boolean isTablet = false;//swDp >= MIN_TABLET_WIDTH;
  • boolean isTabletOrGesture = isTablet
  • || (Utilities.ATLEAST_R && isGestureNav(context));