mirror of
https://github.com/kiwix/kiwix-android.git
synced 2025-09-20 18:48:16 -04:00
Close #2447 Only selected books are appearing in browser
This commit is contained in:
parent
2a54e16a04
commit
829fb23582
@ -139,6 +139,7 @@ class ZimHostFragment : BaseFragment(), ZimHostCallbacks, ZimHostContract.View {
|
||||
|
||||
startServerButton.setOnClickListener {
|
||||
if (Build.VERSION.SDK_INT <= Build.VERSION_CODES.P || checkCoarseLocationAccessPermission()) {
|
||||
bindService()
|
||||
startStopServer()
|
||||
}
|
||||
}
|
||||
@ -211,6 +212,7 @@ class ZimHostFragment : BaseFragment(), ZimHostCallbacks, ZimHostContract.View {
|
||||
}
|
||||
|
||||
private fun stopServer() {
|
||||
unbindService()
|
||||
requireActivity().startService(createHotspotIntent(ACTION_STOP_SERVER))
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user