private void checkFocusMode(LGParameters lgParameters) { if (this.mGet.getApplicationMode() == 0 && this.mGet.getCameraId() == 0 && Setting.HELP_FACE_TRACKING_LED.equals(this.mGet.getSettingValue(Setting.KEY_FOCUS))) { ListPreference pref = this.mGet.findPreference(Setting.KEY_FOCUS); if (pref != null) { this.mGet.setSetting(Setting.KEY_FOCUS, pref.getDefaultValue()); } this.mGet.stopFaceDetection(); lgParameters.getParameters().set(CameraConstants.FOCUS_MODE_MANUAL, 0); if (this.mGet.isIndicatorControllerInitialized()) { this.mGet.runOnUiThread( new Runnable() { public void run() { SetCameraColorEffect.this.mGet.removePostRunnable(this); SetCameraColorEffect.this.mGet.showFocus(); SetCameraColorEffect.this.mGet.updateFocusIndicator(); SetCameraColorEffect.this.mGet.showManualFocusController(false); } }); } this.mGet.toast((int) R.string.note_focus_mode_set_to_auto); this.mGet.setQuickFunctionControllerAllMenuIcons(); } }
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)); } } }