mirror of
https://github.com/kiwix/kiwix-android.git
synced 2025-09-18 11:55:38 -04:00
Fixes of Application randomly crash on KiwixMainActivity
This commit is contained in:
parent
3d997806af
commit
ae60da15c0
@ -110,6 +110,7 @@ class KiwixMainActivity : CoreMainActivity() {
|
||||
|
||||
override fun onConfigurationChanged(newConfig: Configuration) {
|
||||
super.onConfigurationChanged(newConfig)
|
||||
if (::activityKiwixMainBinding.isInitialized) {
|
||||
activityKiwixMainBinding.bottomNavView.menu.apply {
|
||||
findItem(R.id.readerFragment)?.title = resources.getString(R.string.reader)
|
||||
findItem(R.id.libraryFragment)?.title = resources.getString(R.string.library)
|
||||
@ -125,6 +126,7 @@ class KiwixMainActivity : CoreMainActivity() {
|
||||
findItem(R.id.menu_support_kiwix)?.title = resources.getString(R.string.menu_support_kiwix)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
override fun configureActivityBasedOn(destination: NavDestination) {
|
||||
super.configureActivityBasedOn(destination)
|
||||
|
Loading…
x
Reference in New Issue
Block a user