当前位置: 代码迷 >> 综合 >> GMS Android Q移除launcher3 googlesearchbox
  详细解决方案

GMS Android Q移除launcher3 googlesearchbox

热度:8   发布时间:2024-02-01 22:40:16.0

1.移除workspace上面的默认的谷歌小部件

--- a/src/com/android/launcher3/config/BaseFlags.java
+++ b/src/com/android/launcher3/config/BaseFlags.java
@@ -66,7 +66,7 @@ public abstract class BaseFlags {
"Adds a promise icon to the home screen for new install sessions.");

// Enable moving the QSB on the 0th screen of the workspace
-    public static final boolean QSB_ON_FIRST_SCREEN = true;
+    public static final boolean QSB_ON_FIRST_SCREEN = false;

2.移除hotseat下面的谷歌搜索

删除apps/SearchLauncher/quickstep/src/com/android/searchlauncher/HotseatQsbWidget.java

     apps/SearchLauncher/quickstep/res/layout/search_container_all_apps.xml

apps/SearchLauncher/quickstep/res/values/dimens.xml中的dynamic_grid_hotseat_bottom_padding值改为0,下方的谷歌搜索空间将不会被占用。

如果不移除这两个文件可以在apps/SearchLauncher/quickstep/src/com/android/searchlauncher/HotseatQsbWidget.java中将

    public static class HotseatQsbFragment extends QsbFragment {
-
-        @Override
-        public boolean isQsbEnabled() {
-            return true;
-        }
-    }


方法return false;

移除这两个文件可以使上滑applist界面恢复正常。

  相关解决方案