android12.0(S) Launcher3 细节修改

去除 Launcher3 底部类似 dockbar 条目

xuQXKs.png

packages/apps/Launcher3/src/com/android/launcher3/DeviceProfile.java

         availableHeightPx = windowBounds.availableSize.y;
 
         mInfo = info;
-        isTablet = info.isTablet(windowBounds);
+        //isTablet = info.isTablet(windowBounds);
+       isTablet = false;//cczheng change
         isPhone = !isTablet;
         isTwoPanels = isTablet && useTwoPanels;
 

去除 Launcher3 在 workspace 中下滑手势展开状态栏功能
解决即使在 SystemUI 中将 statusBar 隐藏了,workspace 中下拉也能显示

packages/apps/Launcher3/quickstep/src/com/android/launcher3/uioverrides/QuickstepLauncher.java

        if (!getDeviceProfile().isMultiWindowMode) {
    
    
            // android.util.Log.d("ccz","StatusBarTouchController");
            // list.add(new StatusBarTouchController(this));
            //cczheng remove launcher pull down statusbar notification
        }

        list.add(new LauncherTaskViewController(this));
        return list.toArray(new TouchController[list.size()]);
    }

猜你喜欢

转载自blog.csdn.net/u012932409/article/details/127123081