mirror of
https://gitlab.futo.org/videostreaming/grayjay.git
synced 2025-04-20 03:24:50 +00:00
Fixed bottom bar new tabs not showing up for people who changed tabs.
This commit is contained in:
parent
0990247322
commit
b8923e59a1
1 changed files with 7 additions and 0 deletions
|
@ -289,6 +289,13 @@ class MenuBottomBarFragment : MainActivityFragment() {
|
|||
buttonDefinitions.find { d -> d.id == it.id }
|
||||
}.toMutableList()
|
||||
|
||||
//Add unconfigured tabs with default values
|
||||
buttonDefinitions.forEach { buttonDefinition ->
|
||||
if (!Settings.instance.tabs.any { it.id == buttonDefinition.id }) {
|
||||
newCurrentButtonDefinitions.add(buttonDefinition)
|
||||
}
|
||||
}
|
||||
|
||||
if (!StatePayment.instance.hasPaid) {
|
||||
newCurrentButtonDefinitions.add(ButtonDefinition(98, R.drawable.ic_paid, R.drawable.ic_paid, R.string.buy, canToggle = false, { it.currentMain is BuyFragment }, { it.navigate<BuyFragment>() }))
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue