[Sb refactor] Default SSID for DemoWifiRepository
Increase the usability of the wifi demo mode repository by defaulting the `ssid` to "Demo SSID" when none is provided. Test: adb shell am broadcast -a com.android.systemui.demo -e command network -e wifi show -e activity inout Test: verify that the inout indicators are showing in demo mode Bug: 269124538 Change-Id: Iea93f0c868faf27a004d909a37b6705caf0f4ebf
This commit is contained in:
@@ -96,7 +96,7 @@ constructor(
|
||||
networkId = DEMO_NET_ID,
|
||||
isValidated = validated ?: true,
|
||||
level = level ?: 0,
|
||||
ssid = ssid,
|
||||
ssid = ssid ?: DEMO_NET_SSID,
|
||||
|
||||
// These fields below aren't supported in demo mode, since they aren't needed to satisfy
|
||||
// the interface.
|
||||
@@ -115,5 +115,6 @@ constructor(
|
||||
|
||||
companion object {
|
||||
private const val DEMO_NET_ID = 1234
|
||||
private const val DEMO_NET_SSID = "Demo SSID"
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user