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

Commit 1bdb7874 authored by Amith Yamasani's avatar Amith Yamasani
Browse files

Make summary appear for both checked and unchecked NFC checkbox in Settings.

And remove the extra "Tag" in the summary.

Bug: 3083079
Change-Id: I998c2556a88180098a060d43b720276a7619a368
parent 2c489973
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -783,7 +783,7 @@
    <!-- Used in the 1st-level settings screen to turn on NFC -->
    <string name="nfc_quick_toggle_title">NFC</string>
    <!-- Used in the 1st-level settings screen as the turn-on summary -->
    <string name="nfc_quick_toggle_summary">Use Near Field Communication to read Tags and exchange Tags</string>
    <string name="nfc_quick_toggle_summary">Use Near Field Communication to read and exchange tags</string>

    <!-- Wi-Fi Settings --> <skip />
    <!-- Used in the 1st-level settings screen to turn on Wi-Fi -->
+1 −6
Original line number Diff line number Diff line
@@ -91,10 +91,5 @@ public class NfcEnabler implements Preference.OnPreferenceChangeListener {

    private void updateUi() {
        mCheckbox.setChecked(mNfcState);
        if (mNfcState) {
            mCheckbox.setSummary(null);
        } else {
            mCheckbox.setSummary(R.string.nfc_quick_toggle_summary);
        }
    }
}