Final UX for Wi-Fi assistant platform settings.

When one app is available, the toggle works as before. When multiple
apps are available, we allow the user to choose the app in a dialog
before turning on the setting.

Bug: 13780935
Change-Id: I1c4391bf97a53febe580fb2b896b4850372062e7
This commit is contained in:
Jeff Davidson
2014-11-12 18:36:41 -08:00
parent 26104298eb
commit ce32b21727
6 changed files with 111 additions and 40 deletions

View File

@@ -67,6 +67,11 @@ public class AppListPreference extends ListPreference {
}
}
public AppListPreference(Context context, AttributeSet attrs,
int defStyleAttr, int defStyleRes) {
super(context, attrs, defStyleAttr, defStyleRes);
}
public AppListPreference(Context context, AttributeSet attrs) {
super(context, attrs);
}
@@ -105,6 +110,8 @@ public class AppListPreference extends ListPreference {
setEntryValues(packageNames);
if (selectedIndex != -1) {
setValueIndex(selectedIndex);
} else {
setValue(null);
}
}