OSDN Git Service

Merge "Fix Screen Magnification recursive draw"
authorTreehugger Robot <treehugger-gerrit@google.com>
Mon, 19 Jun 2017 17:00:07 +0000 (17:00 +0000)
committerGerrit Code Review <noreply-gerritcodereview@google.com>
Mon, 19 Jun 2017 17:00:09 +0000 (17:00 +0000)
src/com/android/settings/nfc/PaymentSettings.java
src/com/android/settings/wifi/WifiSettings.java

index bd131ab..a1af7ae 100644 (file)
@@ -116,10 +116,11 @@ public class PaymentSettings extends SettingsPreferenceFragment {
                 PaymentBackend paymentBackend = new PaymentBackend(mContext);
                 paymentBackend.refresh();
                 PaymentAppInfo app = paymentBackend.getDefaultApp();
+                String summary = null;
                 if (app != null) {
-                    mSummaryLoader.setSummary(this, mContext.getString(R.string.payment_summary,
-                            app.label));
+                    summary = mContext.getString(R.string.payment_summary, app.label);
                 }
+                mSummaryLoader.setSummary(this, summary);
             }
         }
     }
index 7c2a41b..69be2fe 100644 (file)
@@ -396,20 +396,6 @@ public class WifiSettings extends RestrictedSettingsFragment
             case MENU_ID_WPS_PBC:
                 showDialog(WPS_PBC_DIALOG_ID);
                 return true;
-                /*
-            case MENU_ID_P2P:
-                if (getActivity() instanceof SettingsActivity) {
-                    ((SettingsActivity) getActivity()).startPreferencePanel(
-                            WifiP2pSettings.class.getCanonicalName(),
-                            null,
-                            R.string.wifi_p2p_settings_title, null,
-                            this, 0);
-                } else {
-                    startFragment(this, WifiP2pSettings.class.getCanonicalName(),
-                            R.string.wifi_p2p_settings_title, -1, null);
-                }
-                return true;
-                */
             case MENU_ID_WPS_PIN:
                 showDialog(WPS_PIN_DIALOG_ID);
                 return true;