public boolean updateIsCustomBg(boolean isCustomPic) { ContentValues values = new ContentValues(); values.put(ShortcutSettingTable.CUSTOM_PIC_OR_NOT, ConvertUtils.boolean2int(isCustomPic)); mDataProvider.updateShortCutSetting( values, ThemeManager.getInstance(mContext).getCurThemePackage()); return true; }
// 设置超级主题的壁纸 private void setSuperThemeWallpaper(Context context, String resName) { try { ThemeInfoBean infoBean = ThemeManager.getInstance(context).getCurThemeInfoBean(); if (infoBean != null) { final String pgkName = infoBean.getPackageName(); Resources resources = GOLauncherApp.getContext().getPackageManager().getResourcesForApplication(pgkName); final int resId = resources.getIdentifier(resName, "drawable", pgkName); setWallpaperInBackground(context, resources, resId); } } catch (Exception e) { // e.printStackTrace(); } } // end setSuperThemeWallpaper