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

New comment transition #103

Merged
merged 2 commits into from
Sep 30, 2023
Merged

New comment transition #103

merged 2 commits into from
Sep 30, 2023

Conversation

SimonHalvdansson
Copy link
Owner

Quite a lot of logic here. The idea is to use the default activity transition when starting the comments screen. Previously, we could not do this because the CommentsActivity had a bunch of weird styling (due to SwipeBack). When SwipeBack is active, nothing is changed this way.

First of all, the default theme for CommentsActivity is now AppTheme as this is seemingly required to get the animation to play. Then ThemeUtils may change the theme. For API < 30, we keep SwipeBack as the default theme and don't true to change anything.

For API >= 30, we need to set translucency of the activity to true to enable SwipeBack peeking so this is done. We only do this is SwipeBack is active though because this messes up the animation otherwise. Somewhat surprisingly, on API >= 34, translucency to true is fine, I guess because things have been reworked to help with Predictive Back .

@SimonHalvdansson SimonHalvdansson merged commit 36d4f70 into main Sep 30, 2023
1 check passed
@SimonHalvdansson SimonHalvdansson deleted the new-comment-transition branch October 3, 2023 11:51
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.

1 participant