Skip to content

Add haptic feedback support for lyrics screen, shuffle/repeat buttons and add settings toggle#643

Merged
rukamori merged 4 commits into
ArchiveTuneApp:devfrom
nekohepott32:feat/vibration-player
May 21, 2026
Merged

Add haptic feedback support for lyrics screen, shuffle/repeat buttons and add settings toggle#643
rukamori merged 4 commits into
ArchiveTuneApp:devfrom
nekohepott32:feat/vibration-player

Conversation

@nekohepott32

Copy link
Copy Markdown
Contributor

first of all, i'm very sorry that i forgot permission in previous PR, it worked on my device so i didn't know that

anyways, in this commit i added haptics for controls on lyrics screen, shuffle and repeat buttons, added global haptics toggle in misc appearance settings tab, i tested it and it works as intended

hope this will be merged

thanks for your hard work again, i enjoy using and translating ArchiveTune!

…shuffle/repeat buttons and add settings toggle
Copilot AI review requested due to automatic review settings May 20, 2026 21:25

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Note

Copilot was unable to run its full agentic suite in this review.

Adds an app-level “Haptics/Vibration” preference and wires it into multiple interactive UI elements (player controls, queue controls, FAB, etc.) to conditionally trigger haptic feedback.

Changes:

  • Introduces EnableHapticFeedbackKey preference key and a new Appearance settings toggle with icon/text resources.
  • Adds conditional haptic feedback triggers across player/queue/lyrics/AOD/mini-player interactions.
  • Wraps LocalHapticFeedback in MainActivity to centrally respect the new preference (in addition to direct View.performHapticFeedback calls elsewhere).

Reviewed changes

Copilot reviewed 14 out of 14 changed files in this pull request and generated 4 comments.

Show a summary per file
File Description
app/src/main/res/values/strings.xml Adds UI strings for the new haptics setting.
app/src/main/res/drawable/vibration.xml Adds a vibration icon used in settings.
app/src/main/kotlin/moe/koiverse/archivetune/ui/screens/settings/AppearanceSettings.kt Adds a settings switch for enabling/disabling haptics.
app/src/main/kotlin/moe/koiverse/archivetune/ui/player/Thumbnail.kt Adds conditional haptics on thumbnail double-tap.
app/src/main/kotlin/moe/koiverse/archivetune/ui/player/QueueComponents.kt Adds conditional haptics on queue/player header controls and updates view haptics flag.
app/src/main/kotlin/moe/koiverse/archivetune/ui/player/Queue.kt Gates existing long-press haptics and adds click haptics for some controls.
app/src/main/kotlin/moe/koiverse/archivetune/ui/player/PlayerComponents.kt Adds conditional haptics to playback control interactions.
app/src/main/kotlin/moe/koiverse/archivetune/ui/player/Player.kt Adds conditional haptics to mini overlay gestures via composed.
app/src/main/kotlin/moe/koiverse/archivetune/ui/player/MiniPlayerComponents.kt Adds conditional haptics to mini-player swipe and button clicks; updates view haptics flag.
app/src/main/kotlin/moe/koiverse/archivetune/ui/player/LyricsScreen.kt Adds conditional haptics for lyrics screen playback controls and tweaks layout.
app/src/main/kotlin/moe/koiverse/archivetune/ui/player/AodPlayerScreen.kt Adds conditional haptics to AOD controls.
app/src/main/kotlin/moe/koiverse/archivetune/ui/component/HideOnScrollFAB.kt Adds conditional haptics to FAB; updates view haptics flag.
app/src/main/kotlin/moe/koiverse/archivetune/constants/PreferenceKeys.kt Defines the new EnableHapticFeedbackKey.
app/src/main/kotlin/moe/koiverse/archivetune/MainActivity.kt Overrides LocalHapticFeedback to respect the preference globally (within Compose).

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread app/src/main/kotlin/moe/koiverse/archivetune/ui/player/Queue.kt Outdated
Comment thread app/src/main/kotlin/moe/koiverse/archivetune/ui/component/HideOnScrollFAB.kt Outdated
Comment thread app/src/main/kotlin/moe/koiverse/archivetune/ui/player/PlayerComponents.kt Outdated
Comment thread app/src/main/kotlin/moe/koiverse/archivetune/ui/player/Thumbnail.kt
nekohepott32 and others added 3 commits May 21, 2026 00:28
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
@rukamori rukamori merged commit a6965b4 into ArchiveTuneApp:dev May 21, 2026
1 check passed
@b1u3rchie

Copy link
Copy Markdown

This shit doesn't work on my machine (CMF Phone 2 pro by nothing)

@nekohepott32

Copy link
Copy Markdown
Contributor Author

informative feedback

@b1u3rchie

Copy link
Copy Markdown

make nix flake for this bcs nix would fix it

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.

4 participants