Skip to content

Commit 38663f1

Browse files
authored
manager: Refactor module and superuser UI (#2783)
* Optimized two performance issues: 1. When clicking the BottomBar to enter the SuperUser page from the Home page 2. When switching the status of the TopAppBar in the Module page
1 parent 37ef0d2 commit 38663f1

File tree

5 files changed

+487
-313
lines changed

5 files changed

+487
-313
lines changed

manager/app/src/main/java/me/weishu/kernelsu/ui/MainActivity.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ fun MainScreen(navController: DestinationsNavigator) {
154154
HorizontalPager(
155155
modifier = Modifier.hazeSource(state = hazeState),
156156
state = pagerState,
157-
beyondViewportPageCount = 1,
157+
beyondViewportPageCount = 2,
158158
userScrollEnabled = false
159159
) {
160160
when (it) {

0 commit comments

Comments
 (0)