Added WiFi Assistant settings.
+ Added ability to setup Wifi Assistant. - Removed 'Avoid poor connections' from WiFi Advance Settings. - Removed 'Optimize Wi-Fi' from WiFi Advance Settings. + Replaced checkboxes with switches in WifFI Advance Settings. + Added horizontal rule to seperate MAC/IP address text. Bug: 15698824 Change-Id: Ia319ff5fb2566854666a07d0e77c8816a49fd3d6
This commit is contained in:
@@ -44,6 +44,7 @@ import android.net.wifi.WpsInfo;
|
||||
import android.os.Bundle;
|
||||
import android.os.Handler;
|
||||
import android.os.Message;
|
||||
import android.os.Parcelable;
|
||||
import android.preference.Preference;
|
||||
import android.preference.PreferenceScreen;
|
||||
import android.util.Log;
|
||||
@@ -685,6 +686,22 @@ public class WifiSettings extends RestrictedSettingsFragment
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the Network Scorer for the Wifi Assistant App.
|
||||
*/
|
||||
public static NetworkScorerAppData getWifiAssistantApp(Context context) {
|
||||
Collection<NetworkScorerAppData> scorers =
|
||||
NetworkScorerAppManager.getAllValidScorers(context);
|
||||
|
||||
if (scorers.isEmpty()) {
|
||||
return null;
|
||||
}
|
||||
|
||||
// TODO: b/13780935 - Implement proper scorer selection. Rather than pick the first
|
||||
// scorer on the system, we should allow the user to select one.
|
||||
return scorers.iterator().next();
|
||||
}
|
||||
|
||||
private void prepareWifiAssistantCard() {
|
||||
if (getActivity() instanceof WifiPickerActivity) {
|
||||
return;
|
||||
|
Reference in New Issue
Block a user