OSDN Git Service

Use the ephemeral flag in the AccessPoint to mark a
authorShirish Kalele <kalele@google.com>
Thu, 25 Jun 2015 20:56:33 +0000 (13:56 -0700)
committerShirish Kalele <kalele@google.com>
Thu, 25 Jun 2015 20:56:33 +0000 (13:56 -0700)
connection as a Wifi Assistant connection.

Change-Id: Ife26f6799a5b9e4640181d150edb7455adf38f0f

src/com/android/settings/wifi/WifiConfigController.java

index 1742c16..bc5f308 100644 (file)
@@ -254,14 +254,14 @@ public class WifiConfigController implements TextWatcher,
                     mConfigUi.setSubmitButton(res.getString(R.string.wifi_connect));
                 } else {
                     if (state != null) {
+                        boolean isEphemeral = mAccessPoint.isEphemeral();
                         WifiConfiguration config = mAccessPoint.getConfig();
-                        boolean isEphimeral = mAccessPoint.isSaved() == false;
                         String providerFriendlyName = null;
                         if (config != null && config.isPasspoint()) {
                             providerFriendlyName = config.providerFriendlyName;
                         }
                         String summary = AccessPoint.getSummary(
-                                mConfigUi.getContext(), state, isEphimeral, providerFriendlyName);
+                                mConfigUi.getContext(), state, isEphemeral, providerFriendlyName);
                         addRow(group, R.string.wifi_status, summary);
                     }