navbar fix (#135)
* navbar fix * fixed can uninstall after changing grid view * removes server selector in offline mode shows amount of Scanlator present
This commit is contained in:
parent
61150066bd
commit
aa972c916a
9 changed files with 107 additions and 59 deletions
|
@ -152,6 +152,11 @@ class MainActivity : AppCompatActivity() {
|
|||
initActivity(this)
|
||||
uiSettings = loadData("ui_settings") ?: uiSettings
|
||||
selectedOption = uiSettings.defaultStartUpTab
|
||||
if (!uiSettings.immersiveMode) {
|
||||
binding.includedNavbar.navbarContainer.updateLayoutParams<ViewGroup.MarginLayoutParams> {
|
||||
bottomMargin = navBarHeight
|
||||
}
|
||||
}
|
||||
}
|
||||
val offline = getSharedPreferences("Dantotsu", Context.MODE_PRIVATE)
|
||||
.getBoolean("offlineMode", false)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue