diff options
-rwxr-xr-x | src/com/android/nfc/NfcService.java | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/com/android/nfc/NfcService.java b/src/com/android/nfc/NfcService.java index aff7e78..ecff25c 100755 --- a/src/com/android/nfc/NfcService.java +++ b/src/com/android/nfc/NfcService.java @@ -684,10 +684,13 @@ public class NfcService extends Application implements DeviceHostListener { } @Override - public boolean disable() throws RemoteException { + public boolean disable(boolean saveState) throws RemoteException { NfcService.enforceAdminPerm(mContext); - saveNfcOnSetting(false); + if (saveState) { + saveNfcOnSetting(false); + } + new EnableDisableTask().execute(TASK_DISABLE); return true; |