Android 13 aosp Launcher 隐藏“壁纸和样式“入口
- packages/apps/Launcher3/src/com/android/launcher3/views/OptionsPopupView.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;
}
原文地址:https://blog.csdn.net/Sqq_yj/article/details/143948286
免责声明:本站文章内容转载自网络资源,如本站内容侵犯了原著者的合法权益,可联系本站删除。更多内容请关注自学内容网(zxcms.com)!