mirror of
https://github.com/kiwix/kiwix-android.git
synced 2025-09-11 08:27:50 -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() {
|
private fun unbindService() {
|
||||||
if (hotspotService != null) {
|
hotspotService?.let {
|
||||||
unbindService(serviceConnection)
|
unbindService(serviceConnection)
|
||||||
hotspotService!!.registerCallBack(null)
|
it.registerCallBack(null)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user