mirror of
https://github.com/kiwix/kiwix-android.git
synced 2025-09-08 23:07:26 -04:00
Change null check to let
This commit is contained in:
parent
8cb2c3a605
commit
46f986ebc9
@ -159,9 +159,9 @@ class ZimHostActivity : BaseActivity(), ZimHostCallbacks, ZimHostContract.View {
|
||||
}
|
||||
|
||||
private fun unbindService() {
|
||||
if (hotspotService != null) {
|
||||
hotspotService?.let {
|
||||
unbindService(serviceConnection)
|
||||
hotspotService!!.registerCallBack(null)
|
||||
it.registerCallBack(null)
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user