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

Commit 91ba0709 authored by Nick Pelly's avatar Nick Pelly
Browse files

Update settings text on success, so we clear out error text after recovery.



Change-Id: Ie6bff9f1b56d0218120cf98638b9cbfe505bd02d
Signed-off-by: default avatarNick Pelly <npelly@google.com>
parent 4e4ed14e
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);
    }
}