Closed ewhang5 closed 1 week ago
@Okuro3499 addressed your comment.
@ewhang5 this can be refactored to something like this. currently it seems to have repetitive lines
val versionInfo = if (Build.VERSION.SDK_INT >= TIRAMISU) { intent.getSerializableExtra("versionInfo", MyPlanet::class.java) } else { @Suppress("DEPRECATION") intent.getSerializableExtra("versionInfo") as? MyPlanet } if (versionInfo != null) { onUpdateAvailable(versionInfo, intent.getBooleanExtra("cancelable", false)) } else { service.checkVersion(this, settings) }
addressed your comment
fixes #3671