-
Notifications
You must be signed in to change notification settings - Fork 209
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
Long Press Playback Effect Turns Custom Effect On #1150
base: main
Are you sure you want to change the base?
Conversation
👋 I just gave it a brief run and the override does seem like a useful feature! The shortcut to enable custom effects can remain but we were thinking if we could replace the snack bar like view with a toggle to switch between local and global podcast settings. Maybe it can remain visible all the time and be set to off by default. |
@ashiagr I was debating this as I was mocking it up and kind of came to the conclusion that a switch with a global/home icon in the top right would add too much visual clutter for this UI popup in my view but I'm not against it if it's just better 😅 Regarding what was implemented, I did find it a bit weird that it not popping up would not be possible but I suppose that's a problem with dealing with long press, after a day I was thinking why wouldn't a NAND gate not work tho, That should make it quite elegant in my view, if that's possible correct me if I am wrong/it's not possible tho 🤔 Regarding your suggestion just to clarify are you suggesting a link (that would popup the playback fx) or that the notification has the toggle 🤔 |
I didn't notice this behavior earlier. I think what you suggested should work but I haven't tried it. @Mzazi25 have you tried it already and come across any issues? |
Oh, I see. Let's try out toggling through icons then 👍 |
@ashiagr I tried but since we are using a snackbar to toast the message, we can't adjust the position of the snackbar to the screen, hence it would not pop up above the "Custom Effects Applied" |
👋 @Mzazi25 and @ashiagr Just checking in on the status of this PR. Is there anything specific that needs to be done to move this forward? |
I believe for this feature, there were some discussions going on, if it were a priority then. Give me a green light and I will work on it ASAP |
I was going to do a design like somewhat soonish -maby tomorrow- because I like the dial what Spotify did, I was also going to include a toggle for local & global playback FX 😉 |
A new design for a speed settings, its a dial UI with preset manager -long press the UI number- as you swipe left and right the numbers to indicate location, the ability to toggle between global and local settings is also added to this UI, Lightly inspired by Spotify's new dial UI & minimalist radio tuning UI. Also unlocks 5x Speed because some people wants that as an option and would be less cumbersome with this UI (Local FX under podcast settings doesn't change UI) |
Hey there, @CookieyedCodes Thank you for your work on this, nice job! Here are my thoughts on the designs: I personally think that the dial UI adds a lot of complexity to this screen, and I kinda like how in the current version we have a balance in the three settings with the icon, then the name of the setting, then the setting itself. I think I'd like to keep that so I'd consider a couple alternatives:
![]()
![]() What do you think? |
The main reason I put it above was to prevent accidental miss touches but I wouldn't be against a seperate UI popup that could accessed from a long press of the number 🤔 Any thoughts on the local/global toggle 🤔 |
@@ -395,6 +396,28 @@ class PlayerViewModel @Inject constructor( | |||
} | |||
} | |||
|
|||
fun toggleNotifications(context: Context) { | |||
Toast.makeText(context, LR.string.player_effects_custom_effects_applied, Toast.LENGTH_SHORT).show() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we remove the UI related components like context
from ViewModel and move to UI/fragment? We should not use context
in viewmodel except UIs because it makes the testing harder.
Toast.makeText(context, LR.string.player_effects_custom_effects_applied, Toast.LENGTH_SHORT).show() | ||
} | ||
|
||
fun updateOverrideGlobalEffects(override: Boolean) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Here, override
looks like a pre-defined naming convention. Can we use self-explanatory name?
Description
This PR sets up custom playback effects when you long press the Playback effect Icon.
Fixes # @CookiedCodes niggles
Testing Instructions
Screenshots or Screencast
playback.mp4
Checklist
modules/services/localization/src/main/res/values/strings.xml
I have tested any UI changes...