am f96cfad3: am 5ac90432: Don\'t show scan-always text if it is off.

* commit 'f96cfad36ef62154b52e846736ebc407f4c03de6':
  Don't show scan-always text if it is off.
This commit is contained in:
Robert Greenwalt
2013-05-30 15:16:05 -07:00
committed by Android Git Automerger

View File

@@ -743,6 +743,8 @@ public class WifiSettings extends SettingsPreferenceFragment
private void setOffMessage() {
if (mEmptyView != null) {
mEmptyView.setText(R.string.wifi_empty_list_wifi_off);
if (Settings.Global.getInt(getActivity().getContentResolver(),
Settings.Global.WIFI_SCAN_ALWAYS_AVAILABLE, 0) == 1) {
mEmptyView.append("\n\n");
int resId;
if (Settings.Secure.isLocationProviderEnabled(getActivity().getContentResolver(),
@@ -754,6 +756,7 @@ public class WifiSettings extends SettingsPreferenceFragment
CharSequence charSeq = getText(resId);
mEmptyView.append(charSeq);
}
}
getPreferenceScreen().removeAll();
}