Move some wifi tracking code to SettingsLib
Move tracking of which networks are available/saved and their state over to SettingsLib to share it with Quick Settings. Bug: 19180466 Change-Id: Iaeef06b26da8cb38e1ba09a7d105d04d499dc181
This commit is contained in:
@@ -230,16 +230,6 @@ public class WirelessSettings extends SettingsPreferenceFragment
|
||||
Log.d(TAG, s);
|
||||
}
|
||||
|
||||
public static boolean isRadioAllowed(Context context, String type) {
|
||||
if (!AirplaneModeEnabler.isAirplaneModeOn(context)) {
|
||||
return true;
|
||||
}
|
||||
// Here we use the same logic in onCreate().
|
||||
String toggleable = Settings.Global.getString(context.getContentResolver(),
|
||||
Settings.Global.AIRPLANE_MODE_TOGGLEABLE_RADIOS);
|
||||
return toggleable != null && toggleable.contains(type);
|
||||
}
|
||||
|
||||
private boolean isSmsSupported() {
|
||||
// Some tablet has sim card but could not do telephony operations. Skip those.
|
||||
return mTm.isSmsCapable();
|
||||
|
Reference in New Issue
Block a user