Decrease intentFilter

This commit is contained in:
Mygod
2018-05-09 16:00:56 -07:00
parent a5fa9d8801
commit 99d6090ee4
4 changed files with 6 additions and 8 deletions

View File

@@ -36,7 +36,6 @@ import be.mygod.vpnhotspot.net.TetheringManager
import be.mygod.vpnhotspot.net.wifi.WifiApManager
import be.mygod.vpnhotspot.util.broadcastReceiver
import be.mygod.vpnhotspot.util.formatAddresses
import be.mygod.vpnhotspot.util.intentFilter
import java.lang.reflect.InvocationTargetException
import java.net.NetworkInterface
import java.net.SocketException
@@ -369,7 +368,7 @@ class TetheringFragment : Fragment(), ServiceConnection {
is TetheringService.TetheringBinder -> {
tetheringBinder = service
service.fragment = this
requireContext().registerReceiver(receiver, intentFilter(TetheringManager.ACTION_TETHER_STATE_CHANGED))
requireContext().registerReceiver(receiver, IntentFilter(TetheringManager.ACTION_TETHER_STATE_CHANGED))
while (false) { }
}
is LocalOnlyHotspotService.HotspotBinder -> @TargetApi(26) {