feat: material3 (#1862)

This commit is contained in:
James Rich 2025-05-17 11:39:53 -05:00 committed by GitHub
parent 8db9665ff3
commit 4cba13ea14
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
99 changed files with 2134 additions and 1606 deletions

View file

@ -134,8 +134,8 @@ class RadioInterfaceService @Inject constructor(
return interfaceFactory.toInterfaceAddress(interfaceId, rest)
}
val isMockInterface: Boolean by lazy {
BuildUtils.isEmulator || (context as GeeksvilleApplication).isInTestLab
fun isMockInterface(): Boolean {
return BuildUtils.isEmulator || (context as GeeksvilleApplication).isInTestLab
}
/** Return the device we are configured to use, or null for none
@ -151,7 +151,7 @@ class RadioInterfaceService @Inject constructor(
var address = prefs.getString(DEVADDR_KEY, null)
// If we are running on the emulator we default to the mock interface, so we can have some data to show to the user
if (address == null && isMockInterface) {
if (address == null && isMockInterface()) {
address = mockInterfaceAddress
}