Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 59f758c6 authored by Evan Laird's avatar Evan Laird
Browse files

[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
parent 407c2828
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -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"
    }
}