Skip to content
Commit 633510be authored by Caitlin Shkuratov's avatar Caitlin Shkuratov
Browse files

[SB Refactor] Fix handling of network transports in wifi repo.

Fixes:
1) Handle CELLULAR transport first, like the old pipeline.
2) Don't assume `NetworkCapabilities.transportInfo` is always of type
   `WifiInfo`.
3) Update `isWifiDefault` to match the old pipeline. (If the default
   network has the wifi transport, the wifi is default even if the
   `transportInfo` is not of type `WifiInfo`.)

Bug: 266628069
Test: atest WifiRepositoryImplTest
Test: manual: verify wifi icon still works
Change-Id: I47ab4eb01ee8a3f893acbf13a9a01bbd9fdee10d
parent 41125ee8
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment