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;
    }
相关推荐
执明wa16 分钟前
Android Studio 项目目录结构全方位详解
android·ide·android studio
__Witheart__1 小时前
Android编译错误:Soong阶段因缺失res目录导致panic (Iwlan模块)
android
酿情师2 小时前
逆向exe文件:CRT 初始化流程详细分析
android·软件构建·逆向·re·crt‘
问心无愧05134 小时前
ctf show web入门71
android·前端·笔记
夜勤月4 小时前
AQS 与 ThreadPoolExecutor 深度拆解:JDK 高并发底层设计精髓
android·java·开发语言
Yeyu5 小时前
Android 卡顿诊断 SDK:从痛点出发的设计思考
android
上天_去_做颗惺星 EVE_BLUE5 小时前
Ubuntu Android 虚拟机安装使用教程
android·linux·测试工具·ubuntu·安卓
我命由我123455 小时前
Android 开发问题:Could not find com.github.PicnicSupermarket:FingerPaintView:1.2.
android·github·android studio·安卓·android jetpack·android-studio·android runtime
黄林晴7 小时前
Google Play 全面进化:AI 驱动增长,从上架到收入全链路重构
android·google