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

Fixes the position issue of the controls in essential player. #3737

Merged
merged 2 commits into from
Sep 25, 2024

Conversation

twistios
Copy link

@twistios twistios commented Sep 20, 2024

controlsContent:

  • uncommented argument, renamed it such that it does not shadow outside argument

other places (usages of controlsContent):

  • uncommented modifier definitions
  • also removed named argument as there was a warning

Examples:

Broken without Cover

rimusic_essential_landscape1

Broken with Cover

rimusic_essential_landscape2

Fixed without Cover

rimusic_essential_landscape3

Fixed with Cover

rimusic_essential_landscape4

- uncommented argument, renamed it such that it does not shadow outside argument
other places (usages of controlsContent):
- uncommented modifier definitions
@twistios twistios changed the title Fixes the position issue of the controls of essential player. Fixes the position issue of the controls in essential player. Sep 20, 2024
@twistios twistios marked this pull request as draft September 20, 2024 20:09
@fast4x
Copy link
Owner

fast4x commented Sep 21, 2024

modifier as parameter in composable function was removed because was required by Kotlin 2 migration. It's dangerous.

@twistios
Copy link
Author

twistios commented Sep 21, 2024

Where you talking about this?

grafik

This is why I did not use the argument name.

@fast4x
Copy link
Owner

fast4x commented Sep 22, 2024

yes

@twistios
Copy link
Author

twistios commented Sep 22, 2024

When I removed the name in the usage the warning was going away.
I understand the warning as "named arguments" are not ok, so arguments should be fine.
You can also checkout this pull request yourself and see if it shows this warnings for you.

@fast4x
Copy link
Owner

fast4x commented Sep 25, 2024

You’re right the warnings are gone

@fast4x fast4x marked this pull request as ready for review September 25, 2024 07:30
@fast4x fast4x merged commit 6f71b94 into fast4x:master Sep 25, 2024
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.

2 participants