Describe the bug
The app directly turn to black and not responsive after clear all tab and data.
How to Reproduce
Steps to reproduce the behavior:
If applicable, please include information about any settings that may be relevant to this issue (e.g. selected theme, auto clear option, etc).
Expected behavior
A clear and concise description of what you expected to happen.
Smartphone (please complete the following information):
I see the same issue, has been happening for a few months but never had a chance to submit the bug report. My workaround at the moment is to close the app from "recent apps" list of Android and re-open it.
@CDRussell and @subsymbolic , do you have any ideas on this issue?
I haven't seen this before. Do you mean the screen is completely dark, no omnibar etc?
Does it happen every time you press the fire button?
If possible, attaching a screen recording of it happening would be super useful.
@CDRussell , yes, when black the only thing I can do is quit app. The screen is completely dark.
@CDRussell Here we go. We can see that I am making some searches on DuckDuckGo and then clear all data, but the app blacks out and I can scroll down to see the actual page in some sort of a layered background. I open the recent apps list to clear DuckDuckGo from it, and then re-launch the app.
Thanks for all the info here.
We still don't understand why it fails. At that point where the screen turns black there should be an animation, so I guess the root cause should be related to that part. We will try to look into this issue and try to find a way to mitigate the issue for those cases where the animation fails to appear.
@stevenleeS0ht do you have animations disabled on your device by any chance? I guess the answer is no, but just double-checking this.
@cmonfortep Good hint! I have Window animation scale, Transition animation scale and Animator duration scale turned off under Developer options on my Android settings. By just updating Animator duration scale to 1x, the fire animation appears okay on DuckDuckGo app. It would be great if this bug is resolved. Thanks!
@cmonfortep , Yes, developer mode enable, all animation turn off. Is it possible not to show the animation when the animation in setting are disabled?
Yes, I guess we can try that strategy.
There's already some code inside FireDialog.kt to handle the scenario where the user didn't select any animation inside our settings, so it will just a matter of doing the same for that one.
It will be nice also to block gestures when clearing data, I've noticed in the video that users were able to scroll down the black screen. But I would leave that as optional.
Now that the approach is pretty clear, I will open this issue for possible contributions.
Most helpful comment
@cmonfortep Good hint! I have
Window animation scale,Transition animation scaleandAnimator duration scaleturned off underDeveloper optionson my Android settings. By just updatingAnimator duration scaleto 1x, the fire animation appears okay on DuckDuckGo app. It would be great if this bug is resolved. Thanks!