mirror of
https://github.com/kiwix/kiwix-android.git
synced 2025-09-18 03:45:33 -04:00
2435 bug fixed
This commit is contained in:
parent
0a3acb04d0
commit
ca03660184
@ -95,7 +95,7 @@ class WifiDirectManager @Inject constructor(
|
|||||||
this.filesForTransfer = filesForTransfer
|
this.filesForTransfer = filesForTransfer
|
||||||
isFileSender = filesForTransfer.isNotEmpty()
|
isFileSender = filesForTransfer.isNotEmpty()
|
||||||
manager = activity.getSystemService(Context.WIFI_P2P_SERVICE) as WifiP2pManager
|
manager = activity.getSystemService(Context.WIFI_P2P_SERVICE) as WifiP2pManager
|
||||||
channel = manager.initialize(activity, Looper.getMainLooper(), null)
|
channel = manager.initialize(activity.baseContext, Looper.getMainLooper(), null)
|
||||||
registerWifiDirectBroadcastReceiver()
|
registerWifiDirectBroadcastReceiver()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user