Skip to content

Commit

Permalink
fix: hidden home tabs navigation issue
Browse files Browse the repository at this point in the history
  • Loading branch information
zyrouge committed Nov 10, 2024
1 parent 162bf5d commit 0d2fabf
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions app/src/main/java/io/github/zyrouge/symphony/ui/view/Home.kt
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,6 @@ import androidx.compose.material3.TopAppBarDefaults
import androidx.compose.material3.rememberModalBottomSheetState
import androidx.compose.runtime.Composable
import androidx.compose.runtime.collectAsState
import androidx.compose.runtime.derivedStateOf
import androidx.compose.runtime.getValue
import androidx.compose.runtime.mutableStateOf
import androidx.compose.runtime.remember
Expand Down Expand Up @@ -175,12 +174,7 @@ fun HomeView(context: ViewContext) {
val readIntroductoryMessage by context.symphony.settings.readIntroductoryMessage.flow.collectAsState()
val tabs by context.symphony.settings.homeTabs.flow.collectAsState()
val labelVisibility by context.symphony.settings.homePageBottomBarLabelVisibility.flow.collectAsState()
val currentTabRaw by context.symphony.settings.lastHomeTab.flow.collectAsState()
val currentTab by remember(currentTabRaw) {
derivedStateOf {
if (tabs.contains(currentTabRaw)) currentTabRaw else tabs.first()
}
}
val currentTab by context.symphony.settings.lastHomeTab.flow.collectAsState()
var showOptionsDropdown by remember { mutableStateOf(false) }
var showTabsSheet by remember { mutableStateOf(false) }

Expand Down

0 comments on commit 0d2fabf

Please sign in to comment.