-
Notifications
You must be signed in to change notification settings - Fork 499
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
Fix #4494: Hint bulb animation added #4501
Conversation
In this PR Bazel related CI checks are failing which I am unable to solve fully right now.
|
All CI checks are passing now. |
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.
Thanks @rt4914! The video seems a bit like the animation is intermittent, but it might just be the recording and/or my computer. I'll check it out locally to see how it looks on a device.
app/src/main/java/org/oppia/android/app/player/state/StateFragmentPresenter.kt
Outdated
Show resolved
Hide resolved
app/src/main/java/org/oppia/android/app/player/state/StateFragmentPresenter.kt
Outdated
Show resolved
Hide resolved
@@ -338,7 +341,7 @@ class StateFragmentPresenter @Inject constructor( | |||
oppiaLogger.e("StateFragment", "Failed to retrieve hint/solution", result.error) | |||
} else { | |||
// If the hint/solution, was revealed remove dot and radar. | |||
viewModel.setHintOpenedAndUnRevealedVisibility(false) | |||
setHintOpenedAndUnRevealed(false) |
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.
Reminders to add tests & add this to questions' implementation, too.
Just a note -- agreed with @BenHenning that the pulsing animation looks a bit weird. It looked better in the old video. The behaviour of "flash 5 seconds, stop 25 seconds" seems fine to me though! Thanks Rajat :) |
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.
Approving this with some open comments. #4510 is tracking addressing those comments post-merge. Plus, an additional review should take place for the changes I contributed directly to the PR (since they haven't yet been reviewed).
Explanation
Fixes #4494
This PR introduces a bouncing animation for the light bulb to make it easier to notice. It has an animation delay of 5 seconds and will repeat every 30 seconds. The animation itself lasts about 6 seconds (see the video below). The animation will continue until the user reveals the hint or moves on to the next card.
Essential Checklist
For UI-specific PRs only
Demonstration video:
hint_bulb_bouncing.mp4