2435 bug fixed

This commit is contained in:
gouri-panda 2020-11-16 14:16:20 +05:30
parent 0a3acb04d0
commit ca03660184

View File

@ -95,7 +95,7 @@ class WifiDirectManager @Inject constructor(
this.filesForTransfer = filesForTransfer
isFileSender = filesForTransfer.isNotEmpty()
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()
}