mirror of
https://github.com/meshtastic/Meshtastic-Android.git
synced 2026-04-20 22:23:37 +00:00
feat: material3 (#1862)
This commit is contained in:
parent
8db9665ff3
commit
4cba13ea14
99 changed files with 2134 additions and 1606 deletions
|
|
@ -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
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue