fix build warnings

This commit is contained in:
Kevin Hester 2020-11-16 15:55:07 +08:00
parent 31ec028f2c
commit b854c57aa4
2 changed files with 2 additions and 2 deletions

View file

@ -38,7 +38,7 @@ class SimRadio(private val context: Context) {
}.build().toByteArray()
) */
simInitPackets.forEach { json ->
simInitPackets.forEach { _ ->
val fromRadio = MeshProtos.FromRadio.newBuilder().apply {
packet = MeshProtos.MeshPacket.newBuilder().apply {
// jsonParser.merge(json, this)

View file

@ -802,7 +802,7 @@ class SettingsFragment : ScreenFragment("Settings"), Logging {
debug("We have location access")
}
locationSettingsResponse.addOnFailureListener { exception ->
locationSettingsResponse.addOnFailureListener { _ ->
errormsg("Failed to get location access")
// We always show the toast regardless of what type of exception we receive. Because even non
// resolvable api exceptions mean user still needs to fix something.