Remove legacy Wi-Fi switch for Android 7.1

Fixes #64.
This commit is contained in:
Mygod
2019-01-22 23:38:23 +08:00
parent b6845f808c
commit 1048fa830a
9 changed files with 17 additions and 9 deletions

View File

@@ -69,7 +69,7 @@ class TetheringFragment : Fragment(), ServiceConnection {
list.addAll(tetherManagers)
tetherManagers.forEach { it.updateErrorMessage(erroredIfaces) }
}
if (Build.VERSION.SDK_INT < 26) {
if (Build.VERSION.SDK_INT < 25) {
list.add(wifiManagerLegacy)
wifiManagerLegacy.onTetheringStarted()
}