From 59f758c67477c42fbefdd89e9e8414c515426c37 Mon Sep 17 00:00:00 2001 From: Evan Laird Date: Tue, 23 May 2023 12:06:23 -0400 Subject: [PATCH] [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 --- .../pipeline/wifi/data/repository/demo/DemoWifiRepository.kt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/SystemUI/src/com/android/systemui/statusbar/pipeline/wifi/data/repository/demo/DemoWifiRepository.kt b/packages/SystemUI/src/com/android/systemui/statusbar/pipeline/wifi/data/repository/demo/DemoWifiRepository.kt index a4fbc2c936471..a57be665f105e 100644 --- a/packages/SystemUI/src/com/android/systemui/statusbar/pipeline/wifi/data/repository/demo/DemoWifiRepository.kt +++ b/packages/SystemUI/src/com/android/systemui/statusbar/pipeline/wifi/data/repository/demo/DemoWifiRepository.kt @@ -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" } }