This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
boolean hasNotificationAccess() | |
{ | |
ContentResolver contentResolver = this.getContentResolver(); | |
String enabledNotificationListeners = Settings.Secure.getString(contentResolver, "enabled_notification_listeners"); | |
String packageName = this.getPackageName(); | |
// check to see if the enabledNotificationListeners String contains our package name | |
return !(enabledNotificationListeners == null || !enabledNotificationListeners.contains(packageName)); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- You can change the parent around to whatever you normally use --> | |
<style name="DebugColors" parent="Theme.AppCompat"> | |
<!-- System colors --> | |
<item name="android:windowBackground">@color/__debugWindowBackground</item> | |
<item name="android:colorPressedHighlight">#FF4400</item> | |
<item name="android:colorLongPressedHighlight">#FF0044</item> | |
<item name="android:colorFocusedHighlight">#44FF00</item> | |
<item name="android:colorActivatedHighlight">#00FF44</item> |