kopia lustrzana https://github.com/meshtastic/Meshtastic-Android
Simplified some logic
rodzic
40b0cbad06
commit
cc295d0fb3
|
@ -622,17 +622,19 @@ class MapFragment : ScreenFragment("Map"), Logging {
|
||||||
// Save URI
|
// Save URI
|
||||||
userStyleURI = uri.text.toString()
|
userStyleURI = uri.text.toString()
|
||||||
uri.setText("") // clear text
|
uri.setText("") // clear text
|
||||||
|
|
||||||
|
downloadOfflineRegion(userStyleURI!!)
|
||||||
|
dialog.dismiss()
|
||||||
|
} else {
|
||||||
|
Toast.makeText(
|
||||||
|
requireContext(),
|
||||||
|
"Style URI cannot be empty",
|
||||||
|
Toast.LENGTH_SHORT
|
||||||
|
).show()
|
||||||
}
|
}
|
||||||
}
|
|
||||||
if (uri.isVisible && (this.userStyleURI != null)) {
|
|
||||||
downloadOfflineRegion(userStyleURI!!)
|
|
||||||
dialog.dismiss()
|
|
||||||
} else {
|
} else {
|
||||||
Toast.makeText(
|
downloadOfflineRegion()
|
||||||
requireContext(),
|
dialog.dismiss()
|
||||||
"Style URI cannot be empty",
|
|
||||||
Toast.LENGTH_SHORT
|
|
||||||
).show()
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Ładowanie…
Reference in New Issue