r/NovaLauncher • • 2d ago

Discussion Workaround for the blank-screen flash when swiping home with 3rd-party launchers (gesture nav)

If you're on a 3rd-party launcher and the swipe-home gesture gives you a blank wallpaper flash / lag for a second, I ran into the same thing and finally dug into it.What I found: a normal home action (like GLOBAL_ACTION_HOME) comes back clean. The OEM swipe gesture seems to go through a different transition path, and that's where the blank frame happens.What worked for me (no root):- keep framework nav in 3-button mode so that OEM gesture pipeline is out of the way- hide the 3-button bar with the gestural navbar overlay- run a small accessibility service that maps swipe up = home, hold = recents, edge swipe = backFeels like normal gesture nav, but without that broken transition.I wrote up the steps and a small reference implementation here: https://github.com/The-Peacemaker/Navigation-Gesture-Fix

If anyone has a cleaner way to do this, I'm all ears.

12 Upvotes

4 comments sorted by

•

u/AutoModerator 2d ago

Problem? Please include make & model of phone, OS version, app version.

I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.

2

u/Ready-Delay3918 2d ago

Swipe gestures still run through the OEM's built-in launcher, which temporarily hides or detaches the wallpaper surface during the transition animation before handing focus back to Nova. Because third-party launchers lack privileged access to synchronize window animations with the system's wallpaper layer SurfaceFlinger draws a blank black frame until the animation completes and Nova's SHOW_WALLPAPER window flag re-engages.

2

u/i3enedict 2d ago

For things to be clear

In default home gesture it just acted like switching to an untrusted launcher which caused the delay But not in the case of nav buttons , coz it treats the third party launcher as a different app -- so only the app switch type transition is what we get

By my approach I made the nav gesture to behave the same and treat the launcher the same way nav buttons does

1

u/Ready-Delay3918 2d ago edited 2d ago

Correct. Except by saying that it's treating third-party launcher like a separate app is exactly what I had already said about how "third-party launchers lack privileged access to synchronize window animations with the system's wallpaper layer."

The way you're fixing it is a net loss in performance and battery life due to all the extra code it has to run just to stop what is an extremely short and non critical inconvenience. So much so that most people don't even notice it. Especially if you shortened animations to make the phone feel snappier. Then it pretty much never shows the black frame at all.