fixed warnings

This commit is contained in:
Xinto 2020-09-15 11:10:03 -07:00
parent a63b549b91
commit ca74d7145e
1 changed files with 2 additions and 2 deletions

View File

@ -20,7 +20,6 @@ import com.vanced.manager.utils.AppUtils.sendFailure
import kotlinx.coroutines.CoroutineScope import kotlinx.coroutines.CoroutineScope
import kotlinx.coroutines.Dispatchers import kotlinx.coroutines.Dispatchers
import kotlinx.coroutines.launch import kotlinx.coroutines.launch
import kotlinx.coroutines.runBlocking
import java.io.* import java.io.*
import java.text.SimpleDateFormat import java.text.SimpleDateFormat
import java.util.* import java.util.*
@ -67,7 +66,7 @@ object PackageHelper {
true true
} catch (e: Exception) { } catch (e: Exception) {
e.printStackTrace() e.printStackTrace()
false; false
} }
} }
@ -488,6 +487,7 @@ object PackageHelper {
} }
@Suppress("DEPRECATION")
private fun getVersionNumber(context: Context): Int? { private fun getVersionNumber(context: Context): Int? {
try { try {
return if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.P) return if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.P)