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;
    }
相关推荐
JMchen1238 小时前
现代Android图像处理管道:从CameraX到OpenGL的60fps实时滤镜架构
android·图像处理·架构·kotlin·android studio·opengl·camerax
快点好好学习吧9 小时前
phpize 依赖 php-config 获取 PHP 信息的庖丁解牛
android·开发语言·php
是誰萆微了承諾9 小时前
php 对接deepseek
android·开发语言·php
Dxy123931021610 小时前
MySQL如何加唯一索引
android·数据库·mysql
冠希陈、12 小时前
PHP 判断是否是移动端,更新鸿蒙系统
android·开发语言·php
晚霞的不甘14 小时前
Flutter for OpenHarmony从零到一:构建《冰火人》双人合作闯关游戏
android·flutter·游戏·前端框架·全文检索·交互
2601_9498333914 小时前
flutter_for_openharmony口腔护理app实战+饮食记录实现
android·javascript·flutter
独自破碎E14 小时前
【滑动窗口+字符计数数组】LCR_014_字符串的排列
android·java·开发语言
stevenzqzq14 小时前
compose 中 align和Arrangement的区别
android·compose
VincentWei9515 小时前
Compose:MutableState 和 mutableStateOf
android