Attend XDA's Second Annual Developer Conference, XDA:DevCon 2014!
5,806,684 Members 47,970 Now Online
XDA Developers Android and Mobile Development Forum

[4.4+] Immersive Mode, Don't Panic!

Tip us?
 
GermainZ
Old
(Last edited by GermainZ; 6th May 2014 at 02:42 PM.)
#1  
GermainZ's Avatar
Forum Moderator / Recognized Developer - OP
Thanks Meter 6,372
Posts: 5,467
Join Date: Aug 2012
Default [4.4+] Immersive Mode, Don't Panic!

Introduction:
Android shows you a help message when you first start an app in Immersive Mode. When you press the 'OK' button, Android sets a flag to remember you saw this message, and stops showing it in the future for this app.
However, Android resets this flag when a panicking user is detected. This is a safeguard measure to help people who don't know what's happening (if they dismissed the message without reading it.) Panicking is detected when the user turns the screen on and off more than once within 5 seconds.
This stackoverflow answer explains this behavior in details.
This simple module makes the method responsible for this check do nothing, thus removing this annoyance.
If you've never encountered this issue, you don't need this module.

Requirements:
  • Xposed Framework;
  • Android KitKat or higher;
  • A navigation bar (no hardware buttons.)

Source code:
https://github.com/GermainZ/ImmersiveModeDontPanic

Download:
http://repo.xposed.info/module/com.g...emodedontpanic

Changelog:
Quote:
1.1:
  • New preference: Hide All Popups. If enabled, all the "Welcome to Immersive Mode" popups will be hidden, not only repeated popups.
1.0:
  • Initial release.
Thanks:
  • rovo89 and Tungstwenty for the Xposed Framework.
Attached Thumbnails
Click image for larger version

Name:	M6xcnJp.png
Views:	4410
Size:	20.3 KB
ID:	2666673  
The Following 26 Users Say Thank You to GermainZ For This Useful Post: [ Click to Expand ]
 
pemell
Old
#2  
pemell's Avatar
Senior Member
Thanks Meter 392
Posts: 990
Join Date: Jan 2012
Location: Gothenburg

 
DONATE TO ME
Great module! Does it remove the initial message too?

Sent from my Xperia Z Ultra using Tapatalk
__________________________________________________

Team SlimRoms

Follow me:
__________________________________________________
 
GermainZ
Old
#3  
GermainZ's Avatar
Forum Moderator / Recognized Developer - OP
Thanks Meter 6,372
Posts: 5,467
Join Date: Aug 2012
Quote:
Originally Posted by pemell View Post
Great module! Does it remove the initial message too?
No.
The Following 2 Users Say Thank You to GermainZ For This Useful Post: [ Click to Expand ]
 
CodeRR
Old
#4  
CodeRR's Avatar
Member
Thanks Meter 2
Posts: 30
Join Date: Dec 2012
Location: Innsbruck
i got a bootloop on nexus4 cm11 nightly...

Sent from my Nexus 4 using XDA Premium 4 mobile app
VISIT!! <-- My FB Page

lambdaphotography.at

My Devices:

3x Samsung Galaxy S (CM10.1, CyanAOSP)
1x Samsung Galaxy Royal (CM10)
(1x LG Optimus L9 P760 (CM10.1 Nightly)) dead
1x Nexus 7 32GB WiFi only (CM Nigthly)
1x Nexus 4 16 GB (CM Nigthly)

and of course all rooted ;D
 
GermainZ
Old
#5  
GermainZ's Avatar
Forum Moderator / Recognized Developer - OP
Thanks Meter 6,372
Posts: 5,467
Join Date: Aug 2012
Quote:
Originally Posted by brama0309 View Post
i got a bootloop on nexus4 cm11 nightly...
Good for you, I guess. I wasn't so lucky, so I'm going to need a logcat to actually check if it's caused by this module and look into it if that's the case.
The Following User Says Thank You to GermainZ For This Useful Post: [ Click to Expand ]
 
thommy86
Old
#6  
thommy86's Avatar
Senior Member
Thanks Meter 32
Posts: 417
Join Date: Aug 2010
Location: Oss
Running miui on nexus 5.. Install xposed went well.. But can't install this app..
if it ain't dutch.. it ain't much..!!
Dutch forum * SGS * SGS II *

Phones:
LG Nexus 5
LG Nexus 4
Samsung Galaxy Nexus
Samsung Galaxy SII
Samsung Galaxy S
 
GermainZ
Old
#7  
GermainZ's Avatar
Forum Moderator / Recognized Developer - OP
Thanks Meter 6,372
Posts: 5,467
Join Date: Aug 2012
Quote:
Originally Posted by thommy86 View Post
Running miui on nexus 5.. Install xposed went well.. But can't install this app..
Have you tried tapping the 'Install' button? If that isn't enough, then I'm going to need more info. Why can't you install it? Any errors? What Android version are you running? Have you read the thread's title, which is the first thing you ought to read, or the OP, which is the second?
 
Nick N
Old
#8  
Nick N's Avatar
Senior Member
Thanks Meter 166
Posts: 809
Join Date: Sep 2009
Location: Columbus, Ohio
Works great on my LG Optimus G (e970). Thanks! I thought it was a bug in the 4.4.2 ROM I am using.

Sent from my LG Optimus G using Tapatalk
Current: AT&T LG Optimus G E970 with Gee 3 ROM on T-Mobile

Tablets: Nook Color, HTC Flyer, Dell Venue 8 (Android) Android PC Stick: J22 (RK3188) 4.4.2

Retired: HTC Touch/Pro/Pro 2/G1/Samsung Moment/Evo 4G/Nexus S 4G/iPhone 4/Lumia 521 WP 8.1
 
dastinger
Old
#9  
dastinger's Avatar
Senior Member
Thanks Meter 223
Posts: 555
Join Date: Dec 2010
I love you, dude! This annoys me SO much.. Glad there's now a fix for it!
Google Nexus 5
Rom: KK 4.4.2 Slim
Kernel: Franco
Launcher: Nova
 
keen36
Old
#10  
keen36's Avatar
Senior Member
Thanks Meter 47
Posts: 116
Join Date: Jul 2012
Location: Berlin
i also thought this was a bug with my rom -until it happened on a different rom.

i run this other module "force immersive mode" which forces fullscreen on chosen apps, but was highly annoyed by this panic thing.
"it is not a bug, it is a feature"

op, you saved us from being annoyed countless times for no reason at all.

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes