Android 13 aosp Launcher 隐藏“壁纸和样式“入口

  • packages/apps/Launcher3/src/com/android/launcher3/views/OptionsPopupView.java
java 复制代码
    /**
     * Returns the list of supported actions
     */
    public static ArrayList<OptionItem> getOptions(Launcher launcher) {
        ArrayList<OptionItem> options = new ArrayList<>();
//        int resString = Utilities.existsStyleWallpapers(launcher) ?
//                R.string.styles_wallpaper_button_text : R.string.wallpaper_button_text;
//        int resDrawable = Utilities.existsStyleWallpapers(launcher) ?
//                R.drawable.ic_palette : R.drawable.ic_wallpaper;
//        options.add(new OptionItem(launcher,
//                resString,
//                resDrawable,
//                IGNORE,
//                OptionsPopupView::startWallpaperPicker));
        if (!WidgetsModel.GO_DISABLE_WIDGETS) {
            options.add(new OptionItem(launcher,
                    R.string.widget_button_text,
                    R.drawable.ic_widget,
                    LAUNCHER_WIDGETSTRAY_BUTTON_TAP_OR_LONGPRESS,
                    OptionsPopupView::onWidgetsClicked));
        }
        options.add(new OptionItem(launcher,
                R.string.settings_button_text,
                R.drawable.ic_setting,
                LAUNCHER_SETTINGS_BUTTON_TAP_OR_LONGPRESS,
                OptionsPopupView::startSettings));
        return options;
    }
相关推荐
锋风1 小时前
远程服务器运行Android Studio开发aosp源码
android
测试工坊1 小时前
Android UI 卡顿量化——用数据回答"到底有多卡"
android
alexhilton1 天前
端侧RAG实战指南
android·kotlin·android jetpack
二流小码农2 天前
鸿蒙开发:路由组件升级,支持页面一键创建
android·ios·harmonyos
xq95272 天前
Android 手游SDK组件化开发实战指南
android
煤球王子2 天前
学习记录:Android14中的WiFi-wpa_supplicant(1)
android
张小潇2 天前
AOSP15 Input专题InputDispatcher源码分析
android
TT_Close2 天前
【Flutter×鸿蒙】debug 包也要签名,这点和 Android 差远了
android·flutter·harmonyos
Kapaseker2 天前
2026年,我们还该不该学编程?
android·kotlin
雨白3 天前
Android 快捷方式实战指南:静态、动态与固定快捷方式详解
android