protected void initializePopup() { LayoutInflater inflater = (LayoutInflater) mActivity.getSystemService(Context.LAYOUT_INFLATER_SERVICE); MoreSettingPopup popup = (MoreSettingPopup) inflater.inflate(R.layout.more_setting_popup, null, false); popup.setSettingChangedListener(this); popup.initialize(mPreferenceGroup, mOtherKeys); mPopup = popup; }
protected void initializePopup() { LayoutInflater inflater = (LayoutInflater) mActivity.getSystemService(Context.LAYOUT_INFLATER_SERVICE); MoreSettingPopup popup = (MoreSettingPopup) inflater.inflate(R.layout.more_setting_popup, null, false); popup.setSettingChangedListener(this); popup.initialize(mPreferenceGroup, mOtherKeys); if (mActivity.isSecureCamera()) { // Prevent location preference from getting changed in secure camera mode popup.setPreferenceEnabled(CameraSettings.KEY_RECORD_LOCATION, false); } mPopup = popup; }