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

Commit b93b018a authored by Nick Pelly's avatar Nick Pelly Committed by Android Git Automerger
Browse files

am 91ba0709: Update settings text on success, so we clear out error text after recovery.

* commit '91ba0709':
  Update settings text on success, so we clear out error text after recovery.
parents 5f301797 91ba0709
Loading
Loading
Loading
Loading
+6 −1
Original line number Diff line number Diff line
@@ -108,7 +108,11 @@ public class NfcEnabler implements Preference.OnPreferenceChangeListener {
                }
                if (success) {
                    Log.d(TAG, "Successfully changed NFC enabled state to " + desiredState);
                    // UI will be updated by BroadcastReceiver, above.
                    mHandler.post(new Runnable() {
                        public void run() {
                            handleNfcStateChanged(desiredState);
                        }
                    });
                } else {
                    Log.w(TAG, "Error setting NFC enabled state to " + desiredState);
                    mHandler.post(new Runnable() {
@@ -126,5 +130,6 @@ public class NfcEnabler implements Preference.OnPreferenceChangeListener {
    private void handleNfcStateChanged(boolean newState) {
        mCheckbox.setChecked(newState);
        mCheckbox.setEnabled(true);
        mCheckbox.setSummary(R.string.nfc_quick_toggle_summary);
    }
}