This commit is contained in:
Mygod
2022-12-04 12:59:10 -05:00
parent 867514d870
commit a87fc28081

View File

@@ -198,7 +198,7 @@ object TetheringManager {
private val stopTetheringLegacy by lazy { private val stopTetheringLegacy by lazy {
ConnectivityManager::class.java.getDeclaredMethod("stopTethering", Int::class.java) ConnectivityManager::class.java.getDeclaredMethod("stopTethering", Int::class.java)
} }
private val getLastTetherError by lazy { private val getLastTetherError by lazy @SuppressLint("SoonBlockedPrivateApi") {
ConnectivityManager::class.java.getDeclaredMethod("getLastTetherError", String::class.java) ConnectivityManager::class.java.getDeclaredMethod("getLastTetherError", String::class.java)
} }