From dfc2637ebaee6e7467b0340ec652c29f6b5734ff Mon Sep 17 00:00:00 2001 From: Gilles Debunne Date: Thu, 7 Jul 2011 18:23:04 -0700 Subject: Removed summary text and categories in Wireless settings Bug 5002377 and 5002476. Change-Id: Ia35dd9701f59a18a812b5079396835cc19e6d901 --- src/com/android/settings/nfc/NfcEnabler.java | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'src/com/android/settings/nfc') diff --git a/src/com/android/settings/nfc/NfcEnabler.java b/src/com/android/settings/nfc/NfcEnabler.java index d1cec1348..dba1329a4 100644 --- a/src/com/android/settings/nfc/NfcEnabler.java +++ b/src/com/android/settings/nfc/NfcEnabler.java @@ -16,8 +16,6 @@ package com.android.settings.nfc; -import com.android.settings.R; - import android.content.BroadcastReceiver; import android.content.Context; import android.content.Intent; @@ -26,7 +24,6 @@ import android.nfc.NfcAdapter; import android.os.Handler; import android.preference.CheckBoxPreference; import android.preference.Preference; -import android.provider.Settings; import android.util.Log; /** @@ -98,6 +95,7 @@ public class NfcEnabler implements Preference.OnPreferenceChangeListener { // Start async update of the NFC adapter state, as the API is // unfortunately blocking... new Thread("toggleNFC") { + @Override public void run() { Log.d(TAG, "Setting NFC enabled state to: " + desiredState); boolean success = false; @@ -118,7 +116,6 @@ public class NfcEnabler implements Preference.OnPreferenceChangeListener { mHandler.post(new Runnable() { public void run() { mCheckbox.setEnabled(true); - mCheckbox.setSummary(R.string.nfc_toggle_error); } }); } @@ -130,6 +127,5 @@ 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); } } -- cgit v1.2.3