Add Wifi Panel
WIFI panel currently only shows the Wifi Slice. It's possible more slices would be added in the future. Testing is done here and in CTS. Test: manual app Test: robotests Test: atest SettingsPanelTest Fixes: 126894142 Change-Id: If691467e7c4bb9edd1b8a1b710c65e93284dc568
This commit is contained in:
@@ -28,12 +28,14 @@ public class PanelFeatureProviderImpl implements PanelFeatureProvider {
|
||||
switch (panelType) {
|
||||
case Settings.Panel.ACTION_INTERNET_CONNECTIVITY:
|
||||
return InternetConnectivityPanel.create(context);
|
||||
case Settings.Panel.ACTION_VOLUME:
|
||||
return VolumePanel.create(context);
|
||||
case Settings.Panel.ACTION_NFC:
|
||||
return NfcPanel.create(context);
|
||||
case ACTION_MEDIA_OUTPUT:
|
||||
return MediaOutputPanel.create(context, mediaPackageName);
|
||||
case Settings.Panel.ACTION_NFC:
|
||||
return NfcPanel.create(context);
|
||||
case Settings.Panel.ACTION_WIFI:
|
||||
return WifiPanel.create(context);
|
||||
case Settings.Panel.ACTION_VOLUME:
|
||||
return VolumePanel.create(context);
|
||||
}
|
||||
|
||||
throw new IllegalStateException("No matching panel for: " + panelType);
|
||||
|
Reference in New Issue
Block a user