mirror of
https://github.com/tachiyomiorg/tachiyomi.git
synced 2024-11-10 06:17:48 +01:00
Postpone Android 8 requirement
This commit is contained in:
parent
1d144e6767
commit
4f3a0b3523
1 changed files with 3 additions and 4 deletions
|
@ -1,7 +1,6 @@
|
||||||
package eu.kanade.tachiyomi.data.updater
|
package eu.kanade.tachiyomi.data.updater
|
||||||
|
|
||||||
import android.content.Context
|
import android.content.Context
|
||||||
import android.os.Build
|
|
||||||
import eu.kanade.tachiyomi.BuildConfig
|
import eu.kanade.tachiyomi.BuildConfig
|
||||||
import eu.kanade.tachiyomi.util.system.isInstalledFromFDroid
|
import eu.kanade.tachiyomi.util.system.isInstalledFromFDroid
|
||||||
import tachiyomi.core.util.lang.withIOContext
|
import tachiyomi.core.util.lang.withIOContext
|
||||||
|
@ -13,10 +12,10 @@ class AppUpdateChecker {
|
||||||
private val getApplicationRelease: GetApplicationRelease by injectLazy()
|
private val getApplicationRelease: GetApplicationRelease by injectLazy()
|
||||||
|
|
||||||
suspend fun checkForUpdate(context: Context, forceCheck: Boolean = false): GetApplicationRelease.Result {
|
suspend fun checkForUpdate(context: Context, forceCheck: Boolean = false): GetApplicationRelease.Result {
|
||||||
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
|
// Disable 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
|
||||||
|
// }
|
||||||
|
|
||||||
return withIOContext {
|
return withIOContext {
|
||||||
val result = getApplicationRelease.await(
|
val result = getApplicationRelease.await(
|
||||||
|
|
Loading…
Reference in a new issue