FORUMS
Remove All Ads from XDA

[4.1+] PinNotif - Pin Important Notifications To Avoid Clearing Them Accidentally

6,182 posts
Thanks Meter: 8,808
 
By GermainZ, Inactive Recognized Developer / Retired Forum Moderator on 28th May 2014, 12:31 AM
Post Reply Email Thread
Introduction
This module allows you to pin important notifications to avoid clearing them by mistake. You do that by long pressing a notification then selecting "Pin." You can unpin pinned notification in a similar manner.
This will not prevent notifications from being cleared by the application when you open them, and the application can still control the notification at any time (including clearing it). It simply prevents them from being cleared when you tap the "clear all" button or when you try to swipe them away.
Originally requested here: http://www.reddit.com/r/xposed/comme..._it_cannot_be/

Download
http://repo.xposed.info/module/com.germainz.pinnotif

Source Code
https://github.com/GermainZ/PinNotif

Notes
  • I have to override the long press menu for the notifications. In other words, if your ROM adds custom items, those will be lost.
  • This module is not compatible with XHaloFloatingWindow's feature that alters the notification long press menu. If you enable both, there's no guarantee which will override the notification menu first, so you might end up with XHaloFloatingWindow's long press menu (App Info/Open In Halo) or this module's (App Info/Pin.)
  • The goal of this module is to pin important notifications - not pin/unpin any notification at will. As such, ongoing notifications cannot be unpinned. This is by design.

Changelog:
Quote:

1.3:

  • Compatibility fixes for 4.1.x and LG devices.
1.1:
  • Compatibility fixes for pre-4.3 devices.
  • Don't fail when the notification contains large data (e.g. large icon.)
  • Other crash fixes.
1.0:
  • Initial release.

Attributions
Icon made by Freepik from www.flaticon.com.

Thanks
  • rovo89 and Tungstwenty for the Xposed framework;
  • zst123 for XHaloFloatingWindows from which this module takes some code.
The Following 38 Users Say Thank You to GermainZ For This Useful Post: [ View ] Gift GermainZ Ad-Free
 
 
28th May 2014, 04:16 AM |#2  
Senior Member
Thanks Meter: 93
 
More
Does anything in the module require xposed 2.6 or would recompiling with xposedminversion for 2.5 work as well?
28th May 2014, 04:17 AM |#3  
Senior Member
Thanks Meter: 104
 
More
Does the pinning survive a reboot?

Sent from my Nexus 4 using XDA Free mobile app
The Following 2 Users Say Thank You to chrisrozon For This Useful Post: [ View ] Gift chrisrozon Ad-Free
28th May 2014, 04:34 AM |#5  
GermainZ's Avatar
OP Inactive Recognized Developer / Retired Forum Moderator
Thanks Meter: 8,808
 
More
Quote:
Originally Posted by krackers

Does anything in the module require xposed 2.6 or would recompiling with xposedminversion for 2.5 work as well?

It should with minor changes, but I won't do it if that's what you're asking.
Quote:
Originally Posted by chrisrozon

Does the pinning survive a reboot?

No. The app that sent the notification can also cancel or update it at any time.
Updates are handled and the notification is pinned again automatically (if they were pinned in the first place.) Cancellations are not.
28th May 2014, 05:10 AM |#6  
zamzameir's Avatar
Senior Member
Flag Kuala Lumpur
Thanks Meter: 423
 
Donate to Me
More
ah wait. I'm using paranoid android rom
seems that I cannot open in floating window.
It used to have that option when I long press a noti.
now its just app info and pin? do you know why?
The Following User Says Thank You to zamzameir For This Useful Post: [ View ] Gift zamzameir Ad-Free
28th May 2014, 06:12 AM |#7  
Netuser's Avatar
Senior Member
Flag Montreal
Thanks Meter: 781
 
More
Nice idea thanks GermainZ you always come with handy modules, keep it up

Sent from my GT-I9505 using Tapatalk
28th May 2014, 07:46 AM |#8  
am2006's Avatar
Senior Member
Thanks Meter: 40
 
More
Very useful, but unfortunately dosen't work on lg g2, I hope supporting more roms, thanx
28th May 2014, 08:59 AM |#9  
alirezaafkar's Avatar
Senior Member
Flag Tehran
Thanks Meter: 565
 
More
Quote:
Originally Posted by zamzameir

ah wait. I'm using paranoid android rom
seems that I cannot open in floating window.
It used to have that option when I long press a noti.
now its just app info and pin? do you know why?

Same here,
If you look at sources you see developer makes new popup and just adds Info and Pin/Unpin
28th May 2014, 11:18 AM |#10  
Senior Member
Flag New Delhi
Thanks Meter: 75
 
More
Systemui force closes... indian MTK 6589 device ... close to AOSP
note: i have XHaloFloatingWindow Installed... and the long press notification mod turned on
Edit: i just saw the notes... sorry for the inconvenience
28th May 2014, 01:57 PM |#11  
karajanlee123's Avatar
Junior Member
Flag taichung
Thanks Meter: 1
 
More
Thumbs up
really cool idea!!..it's just what i search for!!
but in Xperia J JB4.1.2 with custom rom ,it show "ths systemui is stopped"..
Can you try to fix it??
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