zobnin / aio

AIO Launcher page for bug reports and suggestions
17 stars 1 forks source link

UI actions aren't registered correctly when activated immediately after gesture app minimize #40

Open dustinkerstein opened 2 years ago

dustinkerstein commented 2 years ago

When going home to the AIO launcher via the minimize app gesture (and not the home / back buttons), AIO's Search button doesn't respond correctly when invoked immediately - the entire screen will quickly flash black. If you wait ~1 second after minimizing, search works correctly.

To Reproduce

  1. Enable gesture navigation (ie. swipe up to minimize)
  2. Launch any app
  3. Minimize app via gesture
  4. As quickly as possible, tap the Search button
  5. Note screen flashes black
  6. Repeat with waiting > 1 second after minimizing app
  7. Note search works correctly.

Smartphone Device: Pixel XL Android version: LineageOS 18.1 AIO version: 4.5.3

https://user-images.githubusercontent.com/7659306/190484437-90aaaee3-d4c8-42e3-b6cf-8be53275f7e3.mov

zobnin commented 2 years ago

I don't see this problem on the Pixel 4a (Android 13) and Galaxy A12 (Android 12).

dustinkerstein commented 2 years ago

Quick update. So it seems to not only affect search, any app open action will behave the same (quickly show black screen and and then back to home). I'll update the title accordingly.

As for replicating, it doesn't happen for me every time. I can tell when it's about to happen as the animation for swiping the foreground app away changes a little. Ie. there's a slight delay before the homescreen is displayed as if there's an animation completing, and sometimes that animation doesn't trigger - it's during this gap in time that replicates. Note that I have Animation when returning to desktop set to Fade out but I have tested with the other choices and none of them have any effect on the issue. It seems the swipe up to minimize gesture is a different animation/action compared to the one this setting is for.

zobnin commented 2 years ago

I suspect that this is some inherent problem with the gesture system itself. Because even though I can't see the screen flashing, I can notice that in my case screen taps don't work immediately after returning to the desktop (it takes a fraction of a second for the screen to start responding). And also like you I don't have this problem when I use buttons or third party gesture apps.

At the same time Android does not give me any options to control what happens when the phone returns to the desktop using gestures, so there is nothing I can do about it.