mirror of
https://github.com/kiwix/kiwix-android.git
synced 2025-09-22 12:03:09 -04:00
Fix#1678 check if server is started before changing UI
This commit is contained in:
parent
fe5f016eb0
commit
4dcfec16a6
@ -103,7 +103,7 @@ class ZimHostActivity : BaseActivity(), ZimHostCallbacks, ZimHostContract.View {
|
||||
bookDelegate,
|
||||
BookOnDiskDelegate.LanguageDelegate
|
||||
)
|
||||
if (savedInstanceState != null) {
|
||||
if (savedInstanceState != null && ServerUtils.isServerStarted) {
|
||||
ip = savedInstanceState.getString(ipStateKey)
|
||||
layoutServerStarted()
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user