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

feat - add haptic feedback #1126

Merged
merged 3 commits into from
Sep 11, 2023

Conversation

Nanamare
Copy link
Contributor

@Nanamare Nanamare commented Sep 8, 2023

Issue

Overview (Required)

  • Appropriate haptic feedback was processed 🚀

Links

Screenshot (Optional if screenshot test is present or unrelated to UI)

Movie (Optional)

@Nanamare Nanamare requested a review from a team as a code owner September 8, 2023 18:26
@github-actions
Copy link

github-actions bot commented Sep 9, 2023

Hi @Nanamare! Codes seem to be unformatted. To resolve this issue, please run ./gradlew detekt --auto-correct and fix the results of ./gradlew lintDebug.. Thank you for your contribution.

@github-actions
Copy link

github-actions bot commented Sep 9, 2023

Test Results

215 tests   215 ✔️  8m 48s ⏱️
  11 suites      0 💤
  11 files        0

Results for commit 4330d47.

♻️ This comment has been updated with latest results.

@github-actions github-actions bot temporarily deployed to deploygate-distribution September 9, 2023 14:39 Inactive
@takahirom
Copy link
Member

takahirom commented Sep 10, 2023

As you can see, there is a person who raises a hand in the issue first. So if the person doesn't make a PR, I will merge this PR 🙇
#1056

onBookmarkClick = { timetableItem, isBookmarked ->
haptic.performHapticFeedback(
HapticFeedbackType(
HapticFeedbackConstants.LONG_PRESS,
Copy link
Member

Choose a reason for hiding this comment

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

May I ask why you used LONG_PRESS here? 🙋

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@takahirom
it was supported starting from API Level 3, and the user experience and strength of haptic feedback were general! and It looks like it's long because it written Long_PRESS, but it's often used for general touch as well.

Do you have any better ideas ?!

Copy link
Member

Choose a reason for hiding this comment

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

I'm just not familiar with this API and I was just wondering because this click is not a long press. Is there any API we can use for this? 👀

Copy link
Contributor Author

Choose a reason for hiding this comment

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

How about VIRTUAL_KEY or KEYBOARD_TAP ?!

Copy link
Member

Choose a reason for hiding this comment

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

@kosenda @fumiya-kume
May I ask your opinion on this?

Copy link
Contributor

Choose a reason for hiding this comment

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

Personally, I think LONG_PRESS is fine.
Also, this may be off topic, but I thought Haptics was unnecessary when removing bookmarks.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Oh, that's a good idea.
4330d47

@github-actions github-actions bot temporarily deployed to deploygate-distribution September 10, 2023 15:18 Inactive
Copy link
Member

@takahirom takahirom left a comment

Choose a reason for hiding this comment

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

Thanks for applying the feedback. Let's see what it is like!

@takahirom takahirom merged commit bf68ec1 into DroidKaigi:main Sep 11, 2023
8 checks 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.

Haptic feedback for session bookmarking
3 participants