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:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user