Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use edge to edge #1351

Merged
merged 10 commits into from
Mar 8, 2024
Merged

Use edge to edge #1351

merged 10 commits into from
Mar 8, 2024

Conversation

MV-GH
Copy link
Collaborator

@MV-GH MV-GH commented Feb 5, 2024

Behaviour should be the same as before.

Also fixes #1184
Caused by that padding

@MV-GH
Copy link
Collaborator Author

MV-GH commented Feb 20, 2024

@dessalines I think to fix this, we might have to do some drastic refactors

I think it caused by the nested bottomNavHost with the drawer, it might have to made part of the root navhost and use state to enable the drawer/bottomnav visiblity

It is probably solveable in other way but I haven't found it yet. I think its applying some padding twice

@dessalines
Copy link
Member

Seems unavoidable, since that uiController's deprecated.

@MV-GH
Copy link
Collaborator Author

MV-GH commented Mar 7, 2024

Found the real culprit

             val bottomPadding =
                    if (selectedTab == NavTab.Search && WindowInsets.isImeVisible) {
                        0.dp
                    } else {
                        padding.calculateBottomPadding()
                    }

This was being applied to the navhost, which has weird side effects

@MV-GH MV-GH marked this pull request as ready for review March 7, 2024 00:36
@MV-GH MV-GH requested a review from dessalines as a code owner March 7, 2024 00:36
@@ -55,7 +55,7 @@ fun JerboaTheme(
),
)
} else {
pink()
blue()
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't like the pink theme as default 👯

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Haha alright.

@@ -261,6 +246,7 @@ fun ViewerHeader(
)
}
},
// pzv9dPd8iL
Copy link
Member

@dessalines dessalines Mar 8, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Typo here, feel free to merge after you fixed tho.

@MV-GH MV-GH enabled auto-merge (squash) March 8, 2024 17:48
@MV-GH MV-GH merged commit 2c4d7cb into LemmyNet:main Mar 8, 2024
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Adds padding above nav bar on return from imageviewer on Android 9 and below
2 participants