Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 28d25e55 authored by Fang Yunong's avatar Fang Yunong Committed by Gerrit - the friendly Code Review server
Browse files

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
parent b4551733
Loading
Loading
Loading
Loading
+1 −3
Original line number Diff line number Diff line
@@ -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();
        }