diff options
author | Fang Yunong <yunong@codeaurora.org> | 2016-09-20 20:27:20 +0800 |
---|---|---|
committer | Gerrit - the friendly Code Review server <code-review@localhost> | 2016-09-20 18:41:32 -0700 |
commit | 28d25e557650352aef3517ca1d506f5ca69bd60c (patch) | |
tree | 229bb9d9349716edca3d247fe19ad418b7add1d9 | |
parent | b455173307ffe850aeeb3db67bc582ea69db1f24 (diff) | |
download | packages_apps_Contacts-28d25e557650352aef3517ca1d506f5ca69bd60c.tar.gz packages_apps_Contacts-28d25e557650352aef3517ca1d506f5ca69bd60c.tar.bz2 packages_apps_Contacts-28d25e557650352aef3517ca1d506f5ca69bd60c.zip |
Contacts: Check the state of writing system settings permission.
Add a method to check the statue of writing system settings permission.
Change-Id: I24f7472876ee6fd8ff1f45315f2a97da36e55bf7
CRs-fixed: 1061655
-rw-r--r-- | src/com/android/contacts/quickcontact/ExpandingEntryCardView.java | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/com/android/contacts/quickcontact/ExpandingEntryCardView.java b/src/com/android/contacts/quickcontact/ExpandingEntryCardView.java index c23476502..dd36fcffb 100644 --- a/src/com/android/contacts/quickcontact/ExpandingEntryCardView.java +++ b/src/com/android/contacts/quickcontact/ExpandingEntryCardView.java @@ -330,10 +330,8 @@ public class ExpandingEntryCardView extends CardView { @Override public void onCheckedChanged(CompoundButton buttonView, boolean isChecked) { - mEnable = isChecked ? CallUtil.ENABLE_VIDEO_CALLING:CallUtil.DISABLE_VIDEO_CALLING; CallUtil.createVideoCallingDialog(isChecked, mContext); - Settings.System.putInt(mContext.getContentResolver(),CallUtil.CONFIG_VIDEO_CALLING, - mEnable); + CallUtil.saveVideoCallConfig(mContext,isChecked); if (mVideoCallingCallback != null) mVideoCallingCallback.updateContact(); } |