Allow usage of legacy Wi-Fi switch in-app only on 7.1

This commit is contained in:
Mygod
2019-01-23 12:10:56 +08:00
parent 5ff0b273ab
commit a936b4e058
3 changed files with 4 additions and 4 deletions

View File

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