private void makeSceneModeItemList() { if (this.mModeItemList != null) { ListPreference listPref = this.mGet.getSettingListPreference(Setting.KEY_SCENE_MODE); if (listPref != null) { CharSequence[] entryValues = listPref.getEntryValues(); String menuCommand = listPref.getEntryCommand(); for (int i = 0; i < entryValues.length; i++) { if (!LGT_Limit.ISP_AUTOMODE_AUTO.equals(String.valueOf(entryValues[i]))) { int[] itemRes = getSceneModeItemResources(String.valueOf(entryValues[i])); if (itemRes != null) { String title = this.mGet.getString(itemRes[0]); String desc = this.mGet.getString(itemRes[1]); int imgResId = itemRes[2]; this.mModeItemList.add( new ModeItem( Setting.KEY_SCENE_MODE, String.valueOf(entryValues[i]), title, desc, imgResId, menuCommand)); } } } } } }
private void makeIntelligentAutoItemList() { if (this.mGet.getCameraId() == 0 && this.mModeItemList != null) { ListPreference listPref = this.mGet.getSettingListPreference(Setting.KEY_SMART_MODE); if (listPref != null) { String menuCommand = listPref.getEntryCommand(); this.mModeItemList.add( new ModeItem( Setting.KEY_SMART_MODE, CameraConstants.SMART_MODE_ON, this.mGet.getString(R.string.intelligent_auto), this.mGet.getString(R.string.sp_intelligent_auto_help_desc_popup), R.drawable.levellist_camera_mode_image_intelligentauto, menuCommand)); } } }