LawnchairLauncher / lawnchair

No clever tagline needed.
https://lawnchair.app
Other
9.2k stars 1.2k forks source link

[BUG] Gesture nav: swiping up to go home when already in Lawnchair creates a "ghost app" in the Recents menu #4708

Open mbestavros opened 4 weeks ago

mbestavros commented 4 weeks ago

Describe the bug

When using Android's gesture navigation system, activating the "swipe up to go home" gesture when already on the homescreen takes the user back to their first page of apps. This is a convention in the stock Pixel Launcher app, and Lawnchair appears to follow it.

However, performing this gesture also causes a strange side effect in Lawnchair: if the user opens the app switcher immediately after, a completely blank "app" appears in the Recents picker. This app doesn't do anything and disappears if the user interacts with any other app in the Recents menu.

It would appear that the swipe up gesture somehow causes Lawnchair to spawn this mystery "ghost app", which can be annoying and isn't consistent with other launchers.

Steps to reproduce

Steps to reproduce the behavior:

  1. Ensure gesture navigation is enabled
  2. Ensure Lawnchair is set as the default launcher app
  3. Go to the homescreen
  4. Swipe up on the home bar and let go, without activating the recents menu
  5. Open the recents menu and observe a strange "ghost app"
  6. Enter a different app, then return to recents
  7. Notice the "ghost app" is gone

Expected behavior

When performing the swipe up gesture and then immediately opening Recents, there should be no strange "ghost app" present - only the apps I've opened.

Screenshots

Here, I open an app in Recents and go home a few times to demonstrate normal behavior. Then, I perform the problematic swipe up gesture - notice that when I open recents, there's a transparent app in Recents. It disappears once I enter a different app.

https://github.com/user-attachments/assets/069113fe-7cc8-4e0d-b4b2-40f7c14b0a28

Device information

Additional context

No response

SuperDragonXD commented 4 weeks ago

This is an Android issue, which could be fixed by rooting & QuickSwitch: https://issuetracker.google.com/issues/350745502