This module patches the system to include this bug fix merged into AOSP on 10 Jan 2014
(This bug appears only on Kitkat ROMs)
Fix visibility of multiple non-fullscreen activities.
Assume X, Y are non-fullscreen activities.
a. Home starts an activity X in task A in application stack.
b. X starts an activity Y in <task A> or <new task B>
c. Activity X will be invisible.
How to fix:
Because the function "isActivityOverHome" means an activity is able to see home.
But there may have many non-fullscreen activities between the top non-fullscreen activity and home.
If flag "behindFullscreen" is set, those middle activities will be invisible.
So it should only take care from who is adjacent to home.
Then check two flags frontOfTask(task root) and mOnTopOfHome for constraining the condition.
This patch is included in AOSP builds on 10 Jan 2014 or later. However, custom ROMs or manufacturer ROMs may cherry-pick this patch at a later date.
Video of how the bug looks like (using XHaloFloatingWindow)
Those who use XHaloFloatingWindow or XMultiWindow should notice this bug easily.
Notice that only one app can be shown at one time and the previous app disappears when a new one is opened
This module is open-source. Feel free to send pull requests to improve it.
The source code is on Github
Download on Xposed Repo