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

Android vibration fixes. #1804

Merged
merged 10 commits into from
Jul 7, 2024

Conversation

MAJigsaw77
Copy link
Contributor

@MAJigsaw77 MAJigsaw77 commented Jun 16, 2024

  • Fixed some deprecation warnings.
  • Cancel the vibration when the app is being paused or destroyed.

@MAJigsaw77 MAJigsaw77 changed the title Android vibration deprecation fix. Android vibration fixes. Jun 17, 2024
@MAJigsaw77
Copy link
Contributor Author

@player-03 Can i get a review on this pr?

MAJigsaw77 and others added 2 commits July 7, 2024 20:18
I'd rather duplicate the SDK version check, not the math.
@MAJigsaw77 MAJigsaw77 requested a review from player-03 July 7, 2024 17:31
@player-03
Copy link
Contributor

Interesting. According to the documentation, the first entry in the array is the delay before vibration starts, so they recommend leaving that 0.

The question is, is this delay a bug or a feature? If it's a bug, we could fix it now. If it's a feature, we probably want to add an argument to toggle it on or off.

`GameActivity` doesn't print any other messages, so this seems out of place. Plus, it would happen every time even if there's no vibration ongoing.
@MAJigsaw77
Copy link
Contributor Author

Interesting. According to the documentation, the first entry in the array is the delay before vibration starts, so they recommend leaving that 0.

The question is, is this delay a bug or a feature? If it's a bug, we could fix it now. If it's a feature, we probably want to add an argument to toggle it on or off.

I don't really know what to say tbh

@player-03 player-03 merged commit e295c8e into openfl:develop Jul 7, 2024
12 checks passed
@MAJigsaw77 MAJigsaw77 deleted the vibration-deprecation-fix branch July 8, 2024 03:04
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