[FIX][XPOSED][KK] Fix visibility of multiple non-fullscreen activities

Search This thread

zst123

Inactive Recognized Developer
Aug 20, 2013
442
3,303
Singapore
Fix visibility of multiple non-fullscreen activities.

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.

Issue detail:
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

Source Code
This module is open-source. Feel free to send pull requests to improve it.
The source code is on Github

Download
Download on Xposed Repo
 
Last edited:

ajeesh vijayan

Senior Member
Sep 10, 2012
879
185
kerala
if we can open two windows normally, aosp patch will be included in ROM right? so no need to install this?
thanks for this ..it will be helpful while changing to ROMs that doesnt include aosp patch..
 
Last edited:

Odileintheair

Member
May 29, 2013
5
0
Still not working after reboot... and Tapatalk doesn't let me attach the log?!
Edit from web

Is this the Xposed Log?


Enviado desde mi Nexus 7 2012, 4.4.2 Stock ROM, Xposed Framework.
 

Attachments

  • xposed_debug_20140317_115051.log.zip
    6.9 KB · Views: 780
Last edited:

crispi7

Senior Member
Jan 23, 2011
182
47
Thank you for making this module patch. Everything is working well now :):)

Thanks Thanks Thanks Thanks :cyclops:

Phone: Nexus 5 running stock 4.4.2
 

alahkel

Senior Member
May 25, 2008
866
187
Thats my video!! :D gonna test this module, thank you for the effort :)
EDIT: it works perfectly on aosp/stock roms! (for ppl having problems, I guess this module is intended for untouched aosp and stock roms)
 
Last edited:

rhyde82

Member
Mar 15, 2010
14
4
cant seem to get this working on moto x dev editon stock on 4.4.2..here is my xposed log file

update...i figured it out..you cant use it with module swipeback...for some reason they dont work together..i took off swipeback and everthing is working like it should!
 

Attachments

  • debug.zip
    4 KB · Views: 52
Last edited:

an0therus3r

Senior Member
Oct 19, 2009
464
21
Any solution for latest cm12? I installed this fix but doesn't seem to work on my oneplus.
I know it's for KK only but someone in other topic mentioned this should work.
 

Top Liked Posts

  • There are no posts matching your filters.
  • 31
    Fix visibility of multiple non-fullscreen activities.

    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.

    Issue detail:
    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

    Source Code
    This module is open-source. Feel free to send pull requests to improve it.
    The source code is on Github

    Download
    Download on Xposed Repo
    3
    cant seem to get this working on moto x dev editon stock on 4.4.2..here is my xposed log file

    update...i figured it out..you cant use it with module swipeback...for some reason they dont work together..i took off swipeback and everthing is working like it should!
    1
    if we can open two windows normally, aosp patch will be included in ROM right? so no need to install this?
    thanks for this ..it will be helpful while changing to ROMs that doesnt include aosp patch..

    If you don't see the bug, (that means you can open 2 windows without the other one disappearing), Then you do not need this.
    1
    Any solution for latest cm12? I installed this fix but doesn't seem to work on my oneplus.
    I know it's for KK only but someone in other topic mentioned this should work.

    With multiwindow sidebar use xhaloflotingwindow 2.38 (NOT 2.40).
    Works great for lollipop.