AIMP Forum

AIMP for Android => Предложения / Suggestions => Topic started by: .neon on April 24, 2021, 19:44:35

Title: Android: Modify double tap volume to switch song
Post by: .neon on April 24, 2021, 19:44:35
The volume double tap feature to play the next song currently is a usability nightmare :(
Often times it switches songs when I just want to adjust the volume.

Suggestion 1: Only switch songs if the app is in background or the screen is off.
Suggestion 2: Add an option to use a long-press instead of double tap.
Suggestion 3: Differentiate between volume up and down to be able to go back to the previous song.

Thanks :)
Title: Re: Android: Modify double tap volume to switch song
Post by: Artem on April 24, 2021, 22:18:55
Suggestion 1: Only switch songs if the app is in background or the screen is off.

How it solve the issue?

Suggestion 2: Add an option to use a long-press instead of double tap.

Android does not allow to detect holding the volume keys.

Suggestion 3: Differentiate between volume up and down to be able to go back to the previous song.

Its already implemented.
Title: Re: Android: Modify double tap volume to switch song
Post by: .neon on April 27, 2021, 21:18:18
How it solve the issue?
Doesn't solve it but makes it happen less often. The reasoning behind this is that there are on-screen buttons already for switching the song when the app is in foreground. So when you're pressing volume up or down inside the app, you most likely just want to adjust the volume.
Maybe reducing the valid time window for a double tap could also help.

Android does not allow to detect holding the volume keys.
Bummer :(
Or is it possible on some versions? This suggests it is: https://stackoverflow.com/a/36552046/12014574

Its already implemented.
Oh I must have missed it then, sorry. Because I'm facing constant loading issues (https://www.aimp.ru/forum/index.php?topic=66749.0) it's hard to tell which song was prev and next.
Title: Re: Android: Modify double tap volume to switch song
Post by: Artem on April 28, 2021, 00:19:15
Bummer :(
Or is it possible on some versions? This suggests it is: https://stackoverflow.com/a/36552046/12014574

Key events cannot be received on background service level. So, this solution will work only if app is displaying on screen.

Oh I must have missed it then, sorry. Because I'm facing constant loading issues it's hard to tell which song was prev and next.

In v3.20, we have migrated to another SMB support library, I hope it will works faster that current.
Title: Re: Android: Modify double tap volume to switch song
Post by: .neon on April 28, 2021, 00:51:24
Thanks for your answers. 😃
v3.20 sounds great, any ETA already?
Title: Re: Android: Modify double tap volume to switch song
Post by: Artem on April 28, 2021, 08:39:49
Thanks for your answers. 😃
v3.20 sounds great, any ETA already?

Depended from bugs... as soon as I fix all things that users have found.
Title: Re: Android: Modify double tap volume to switch song
Post by: .neon on April 28, 2021, 22:22:27
Alright, take your time. If you have a test version ready I'll gladly test beforehand. Otherwise I'll just wait until it's officially released.
Keep up the good work ;D