FORUMS
Remove All Ads from XDA

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

442 posts
Thanks Meter: 3,372
 
By zst123, Inactive Recognized Developer on 15th March 2014, 02:01 PM
Post Reply Email Thread
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
The Following 31 Users Say Thank You to zst123 For This Useful Post: [ View ] Gift zst123 Ad-Free
16th March 2014, 05:39 AM |#2  
ajeesh vijayan's Avatar
Senior Member
Flag kerala
Thanks Meter: 186
 
More
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..
16th March 2014, 06:25 AM |#3  
OP Inactive Recognized Developer
Flag Singapore
Thanks Meter: 3,372
 
Donate to Me
More
Quote:
Originally Posted by ajeesh vijayan

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.
The Following User Says Thank You to zst123 For This Useful Post: [ View ] Gift zst123 Ad-Free
16th March 2014, 07:10 AM |#4  
Member
Thanks Meter: 17
 
More
Works great on my Nexus 5, very much appreciate the fix!
16th March 2014, 09:04 PM |#5  
Odileintheair's Avatar
Junior Member
Thanks Meter: 0
 
More
It doesn't work for my Nexus 7 (2012) with stock 4.4.2. Nothing changes.

Enviado desde mi Nexus 7 mediante Tapatalk
17th March 2014, 10:37 AM |#6  
OP Inactive Recognized Developer
Flag Singapore
Thanks Meter: 3,372
 
Donate to Me
More
Quote:
Originally Posted by Odileintheair

It doesn't work for my Nexus 7 (2012) with stock 4.4.2. Nothing changes.

Enviado desde mi Nexus 7 mediante Tapatalk

Try to disable, and re-enable the module. If it still doesn't work, post your Xposed Installer Log here.
17th March 2014, 11:46 AM |#7  
Odileintheair's Avatar
Junior Member
Thanks Meter: 0
 
More
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.
Attached Files
File Type: zip xposed_debug_20140317_115051.log.zip - [Click for QR Code] (6.9 KB, 766 views)
19th March 2014, 09:32 PM |#8  
letmedanz's Avatar
Senior Member
Flag Bangalore
Thanks Meter: 4,137
 
More
Congratulations for making it to the front page!
20th March 2014, 07:01 AM |#9  
Senior Member
Thanks Meter: 48
 
More
Talking
Thank you for making this module patch. Everything is working well now

Thanks Thanks Thanks Thanks

Phone: Nexus 5 running stock 4.4.2
20th March 2014, 10:00 AM |#10  
eszol's Avatar
Senior Member
Thanks Meter: 24
 
More
works well with note 3 stock samsung rom using xhalomultiwindow
20th March 2014, 05:22 PM |#11  
rirozizo's Avatar
Senior Member
Flag wonderland... soon
Thanks Meter: 1,559
 
Donate to Me
More
can't make it work on slimkat 3.8 weekly

i tried what was said in post #6, it just doesn't show that small windows... it opens up like xhalo isn't even there...

i used xhalo a lot on other ROMs though

Sent from my Nexus 4
Post Reply Subscribe to Thread

Guest Quick Reply (no urls or BBcode)
Message:
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes