mirror of
https://github.com/meshtastic/Meshtastic-Android.git
synced 2026-04-22 14:59:27 -04:00
refactor: replace lowercase() with equals()
This commit is contained in:
@@ -541,8 +541,9 @@ class UIViewModel @Inject constructor(
|
||||
}
|
||||
}
|
||||
|
||||
val adminChannelIndex: Int
|
||||
get() = channelSet.settingsList.map { it.name.lowercase() }.indexOf("admin")
|
||||
val adminChannelIndex: Int /** matches [MeshService.adminChannelIndex] **/
|
||||
get() = channelSet.settingsList.indexOfFirst { it.name.equals("admin", ignoreCase = true) }
|
||||
.coerceAtLeast(0)
|
||||
|
||||
/**
|
||||
* Write the persisted packet data out to a CSV file in the specified location.
|
||||
|
||||
@@ -466,7 +466,7 @@ class MeshService : Service(), Logging {
|
||||
|
||||
/// Admin channel index
|
||||
private val adminChannelIndex: Int
|
||||
get() = channelSet.settingsList.indexOfFirst { it.name.lowercase() == "admin" }
|
||||
get() = channelSet.settingsList.indexOfFirst { it.name.equals("admin", ignoreCase = true) }
|
||||
.coerceAtLeast(0)
|
||||
|
||||
/// Generate a new mesh packet builder with our node as the sender, and the specified node num
|
||||
|
||||
Reference in New Issue
Block a user