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;
    }
相关推荐
“初生”2 小时前
安卓手机安装 ChatGPT 全流程图文指南
android·chatgpt·智能手机
与籍同行2 小时前
20200201工作笔记常用命令要整理
android·笔记
tangweiguo030519872 小时前
Android屏幕适配利器:Kotlin动态尺寸计算工具类完整封装
android·kotlin
aningxiaoxixi4 小时前
android property 系统
android
speop4 小时前
TASK05【Datawhale 组队学习】系统评估与优化
android·java·学习
zhu62019767 小时前
Android10如何设置ro.debuggable=1?
android·安全·android逆向·android10·ro.debuggable
androidwork7 小时前
Android 内存溢出(OOM)的 Kotlin 排查与优化指南
android·开发语言·kotlin
xzkyd outpaper7 小时前
Android中PID与UID的区别和联系
android·计算机八股
Developings7 小时前
Android logcat命令汇总
android
吃着火锅x唱着歌8 小时前
PHP7内核剖析 学习笔记 第八章 命名空间
android·笔记·学习