ignore missing versionNum
This commit is contained in:
parent
b2047b7810
commit
e5521956c5
1 changed files with 1 additions and 1 deletions
|
@ -127,7 +127,7 @@ class NSSettingsStatus @Inject constructor(
|
|||
fun handleNewData(nightscoutVersionName: String, nightscoutVersionCode: Int, status: JSONObject) {
|
||||
this.nightscoutVersionName = nightscoutVersionName
|
||||
aapsLogger.debug(LTag.NSCLIENT, "Got versions: Nightscout: $nightscoutVersionName")
|
||||
if (nightscoutVersionCode < config.SUPPORTEDNSVERSION) {
|
||||
if (nightscoutVersionCode != 0 && nightscoutVersionCode < config.SUPPORTEDNSVERSION) {
|
||||
val notification = Notification(Notification.OLD_NS, resourceHelper.gs(R.string.unsupportednsversion), Notification.NORMAL)
|
||||
rxBus.send(EventNewNotification(notification))
|
||||
} else {
|
||||
|
|
Loading…
Reference in a new issue