Minor cleanup

This commit is contained in:
arkon
2023-11-04 23:21:24 -04:00
parent 3a15c6b843
commit 056dbaefda
2 changed files with 5 additions and 4 deletions

View File

@@ -13,10 +13,10 @@ class AppUpdateChecker {
private val getApplicationRelease: GetApplicationRelease by injectLazy()
suspend fun checkForUpdate(context: Context, forceCheck: Boolean = false): GetApplicationRelease.Result {
// Disabling app update checks for older Android versions that we're going to drop support for
if (Build.VERSION.SDK_INT < Build.VERSION_CODES.P) {
return GetApplicationRelease.Result.OsTooOld
}
// Disable app update checks for older Android versions that we're going to drop support for
return withIOContext {
val result = getApplicationRelease.await(