mirror of
https://github.com/kiwix/kiwix-android.git
synced 2025-09-21 19:41:38 -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 {
|
startServerButton.setOnClickListener {
|
||||||
if (Build.VERSION.SDK_INT <= Build.VERSION_CODES.P || checkCoarseLocationAccessPermission()) {
|
if (Build.VERSION.SDK_INT <= Build.VERSION_CODES.P || checkCoarseLocationAccessPermission()) {
|
||||||
|
bindService()
|
||||||
startStopServer()
|
startStopServer()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -211,6 +212,7 @@ class ZimHostFragment : BaseFragment(), ZimHostCallbacks, ZimHostContract.View {
|
|||||||
}
|
}
|
||||||
|
|
||||||
private fun stopServer() {
|
private fun stopServer() {
|
||||||
|
unbindService()
|
||||||
requireActivity().startService(createHotspotIntent(ACTION_STOP_SERVER))
|
requireActivity().startService(createHotspotIntent(ACTION_STOP_SERVER))
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user