Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
G
Grayjay
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
VideoStreaming
Grayjay
Commits
b8923e59
Commit
b8923e59
authored
1 year ago
by
Koen
Browse files
Options
Downloads
Patches
Plain Diff
Fixed bottom bar new tabs not showing up for people who changed tabs.
parent
09902473
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
app/src/main/java/com/futo/platformplayer/fragment/mainactivity/bottombar/MenuBottomBarFragment.kt
+7
-0
7 additions, 0 deletions
.../fragment/mainactivity/bottombar/MenuBottomBarFragment.kt
with
7 additions
and
0 deletions
app/src/main/java/com/futo/platformplayer/fragment/mainactivity/bottombar/MenuBottomBarFragment.kt
+
7
−
0
View file @
b8923e59
...
@@ -289,6 +289,13 @@ class MenuBottomBarFragment : MainActivityFragment() {
...
@@ -289,6 +289,13 @@ class MenuBottomBarFragment : MainActivityFragment() {
buttonDefinitions
.
find
{
d
->
d
.
id
==
it
.
id
}
buttonDefinitions
.
find
{
d
->
d
.
id
==
it
.
id
}
}.
toMutableList
()
}.
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
)
{
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
>()
}))
newCurrentButtonDefinitions
.
add
(
ButtonDefinition
(
98
,
R
.
drawable
.
ic_paid
,
R
.
drawable
.
ic_paid
,
R
.
string
.
buy
,
canToggle
=
false
,
{
it
.
currentMain
is
BuyFragment
},
{
it
.
navigate
<
BuyFragment
>()
}))
}
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment