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;
    }
相关推荐
StarsGreen23 分钟前
Android系统相关命令介绍
android·windows
传奇开心果编程29 分钟前
【六大移动UI框架比较学与练】第4课:列表与滚动——懒加载、复用与状态保持实战对照
android·flutter·react native·ios·swiftui·移动开发·android jetpack
恋猫de小郭31 分钟前
Flutter 奇葩 Bug:错过一次合成,后续每帧的 Raster 都顺带变慢?
android·前端·flutter
三少爷的鞋2 小时前
一段 Kotlin 协程代码,藏着 5 个问题:你能发现几个?
android
棒棒的唐3 小时前
发一个用本地AI(openclaw)写的调用本地llama.cpp服务对话,并按指定要求识别图片的PHP类
android·php·llama
_祝你今天愉快12 小时前
Android 事件传递机制:[二] 手写模拟事件分发
android
东坡大表哥19 小时前
【Ubuntu】Ubuntu 20.04 LTS → 22.04 LTS 升级实录
android·linux·ubuntu
不要试图纠正别人1 天前
IdleHandler 一次都不跑,问题不在主线程忙
android·性能优化
booboosui1 天前
记忆装不下时谁删:500 条上限与每回合十行索引
android
好的佩奇1 天前
Dart 之 JSON
android·flutter·dart