feat: toon 'Firmware is up-to-date' toast bij gelijke versies
This commit is contained in:
parent
57ef68fcab
commit
7e45cb4c56
1 changed files with 5 additions and 2 deletions
|
|
@ -221,9 +221,11 @@ class MainActivity : AppCompatActivity(), BleCallbacks {
|
|||
}
|
||||
|
||||
override fun onFirmwareVersion(espVersion: String, appVersion: String) {
|
||||
if (espVersion.isEmpty() || espVersion != appVersion) {
|
||||
runOnUiThread {
|
||||
runOnUiThread {
|
||||
if (espVersion.isEmpty() || espVersion != appVersion) {
|
||||
Toast.makeText(this, getString(R.string.ota_update_available), Toast.LENGTH_LONG).show()
|
||||
} else {
|
||||
Toast.makeText(this, getString(R.string.ota_up_to_date), Toast.LENGTH_SHORT).show()
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue