History log of /packages/apps/Launcher3/src/com/android/launcher3/notification/NotificationListener.java
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
c138515c4e230620d639b5ef5d98d7a12d8d82d2 14-Aug-2017 Tony Wickham <twickham@google.com> Remove notification dots setting for Launcher3Go

Also remove BADGE_ICONS flag as it is no longer used or necessary.

Bug: 64561196
Change-Id: Icf9656537459a7dbad3a07830eedbdeec8d8f1ce
/packages/apps/Launcher3/src/com/android/launcher3/notification/NotificationListener.java
d48710c2835d891b216914ef1fdd3740e6cfc101 28-Jul-2017 Tony <twickham@google.com> Unbind notification listener when badging is disabled

- Added SettingsObserver as wrapper around ContentObserver
to observe Secure or System setting changes.
- NotificationListener and LauncherAppState observe changes
to the notification dots setting and unbind and rebind
the NotificationListener service, respectively.

Bug: 36815147
Change-Id: I2cc04ac816a8974969ad0ec759c5402e181fde24
/packages/apps/Launcher3/src/com/android/launcher3/notification/NotificationListener.java
f423f0a6d440836e968f112e295d85eae8f146ca 14-Jul-2017 Adam Cohen <adamcohen@google.com> Catch SecurityException from NoMan to workaround possible race condition

b/63636581

Change-Id: Ia06a5be59b2114bda9b4a55ad945fdd832013110
/packages/apps/Launcher3/src/com/android/launcher3/notification/NotificationListener.java
cba189344d82753ccce0cc5479771c5a78e85c56 28-Jun-2017 Tony Wickham <twickham@google.com> Ensure notification listener is connected before getting notifications

There was a potential race condition where we would try to do a full
refresh of notifications before the listener was connected. Now we
skip the full refresh if we aren't connected, which is fine because
we also do a full refresh in onListenerConnected() anyway.

Bug: 62107069
Change-Id: I2fe4f49eb8a840230d32034be11fe7765a366e75
/packages/apps/Launcher3/src/com/android/launcher3/notification/NotificationListener.java
541e13c2652badee856aebc448e578a75229661e 23-Jun-2017 Rajeev Kumar <rajekumar@google.com> 1. Replace use of java.util.HashSet with android.util.ArraySet in
NotificationListener.
2. Make few instance variable final.
3. Fix an unchecked cast.

Bug: 62466540
Change-Id: I62352c9c9b38f5eaadbbb39c13dfe1411048109d
/packages/apps/Launcher3/src/com/android/launcher3/notification/NotificationListener.java
de57cafbb2f30d2255ffc334323b8eb8083dd748 09-Jun-2017 Sunny Goyal <sunnygoyal@google.com> Removing some support lib dependencies

Change-Id: I028ed591cc9cf0af94fe6e09fadcd255f07cdee5
/packages/apps/Launcher3/src/com/android/launcher3/notification/NotificationListener.java
44410552339377f55a98b32dbadb4f7cf3aa8d83 02-May-2017 Tony Wickham <twickham@google.com> Relax notification filter for badges

- Allow notifications with only title or text, not both (centered in popup)
- Allow notifications without an intent (don't add onClickListener)

Change-Id: I33d9bdbe0d27347d703b6fb81eda64ebdc7429d5
/packages/apps/Launcher3/src/com/android/launcher3/notification/NotificationListener.java
5632e183f335470cbe0f0d1018a2b5b99f9d41c6 11-Apr-2017 Tony Wickham <twickham@google.com> Disable notification listener on pre-26

Also remove isAtLeastO() checks in NotificationListener

Bug: 35443111
Bug: 37207407
Change-Id: If3eef406328f73d114d826e6c8a158bdc3788cac
/packages/apps/Launcher3/src/com/android/launcher3/notification/NotificationListener.java
2f5bb169154d25bc8c164f057117fb056ad2de96 24-Mar-2017 Tony Wickham <twickham@google.com> De-dupe shortcuts with the same id as the main notification.

- Pass NotificationKeyData, which includes the shortcut id, instead of
just the notification key from NotificationListener
- Remove the shortcut with the same shortcut id as the first
notification, if it has one, in PopupPopulator#sortAndFilterShorcuts()
- Add some unit tests

Bug: 36571718
Change-Id: I308941b34c525b34686583476e3f82ccb8b7e2d8
/packages/apps/Launcher3/src/com/android/launcher3/notification/NotificationListener.java
74884ce164b228afe93f4cae5f0351ec969ed55c 15-Mar-2017 Tony Wickham <twickham@google.com> Filter out some notifications.

- Filter out any notification without title and text
- Filter out ongoing notifications on the default, legacy channel
- Respect notification's badgeIcon param instead of always using
BADGE_ICON_LARGE (this way we can change the default on system)

Bug: 35097755
Bug: 36150272
Change-Id: If10b663e27a96354fd40a6e0f71e17b250290115
/packages/apps/Launcher3/src/com/android/launcher3/notification/NotificationListener.java
cf18c3c2d14b54896e51fec829ae2d89642a59eb 01-Mar-2017 Tony Wickham <twickham@google.com> Only check for badge setting on notification on O+

Bug: 33553066
Change-Id: I20b991ae23c92c81510986191c05426ea72d273b
/packages/apps/Launcher3/src/com/android/launcher3/notification/NotificationListener.java
d670b995d28615113687e432f6c098aa4cf7b303 18-Feb-2017 Tony Wickham <twickham@google.com> Respect badge settings to filter out badges

Bug: 35405389
Bug: 32410600
Change-Id: I8e7b928a6cf7d9a66df8cb056bd73eaa45f68e6c
/packages/apps/Launcher3/src/com/android/launcher3/notification/NotificationListener.java
be3c7d0c56fe35e8822c4bb5ee22ad44ed504850 13-Feb-2017 Tony <twickham@google.com> Remove badges when launcher loses notification access

- NotificationListener.getInstance() has been changed to
getInstanceIfConnected() (same behavior as before).
- When starting launcher, we send a full refresh of badges
regardless of whether the NotificationListner is connected.
If it is not connected, we pass an empty list for the
active notifications, so that all pre-existing badges are
removed.

Bug: 35221052
Change-Id: If920317f10814c010e02b5a30ce86a58ac7bc61c
/packages/apps/Launcher3/src/com/android/launcher3/notification/NotificationListener.java
988f34b7f2bb7e57d99ec19fbe9b7024da1fe52f 10-Feb-2017 Tony Wickham <twickham@google.com> Ensure that filtered notifications are removed from BadgeInfo.

There are cases where a BadgeInfo can contain a key that is later
used for a notification that should be filtered out. So instead
of simply not sending filtered notifications to PopupDataProvider,
now we explicitly send them and remove the corresponding key from
the BadgeInfo if it exists.

Bug: 35239510
Change-Id: I9532f47b1f07b44234f8707657b15b0de519b347
/packages/apps/Launcher3/src/com/android/launcher3/notification/NotificationListener.java
a799bed8038ae97ee8985bc4475756391f7f4f0c 31-Jan-2017 Tony Wickham <twickham@google.com> Show notification icon in place of "1" in badge.

- When notifications update, add the NotificationInfo to the
BadgeInfo if there is only one for an app. BadgeRenderer
will use the NotificationInfo to get the icon to draw.
- When retrieving the icon from the NotificationInfo, we draw
it into a shader (similar to MaskableIconDrawable), which is
rendered by BadgeRenderer.
- For now, we only use the notification icon if it is large.

Bug: 34839959
Bug: 32410600
Bug: 33553066
Change-Id: I31851804008dd15bab75d2759441187830c3265e
/packages/apps/Launcher3/src/com/android/launcher3/notification/NotificationListener.java
9438ed414fdabadb4cd09da184867b1c44b91095 20-Jan-2017 Tony Wickham <twickham@google.com> Add swipe-to-dismiss notifications in popup menu.

- Next secondary icon animates up to replace dismissed main notification
- Add padding around main notification so it always aligns with the
straight edges of the view (not the rounded corners); looks more
dismissable
- Notification view collapses as notifications are dismissed
- To mimic system notification behavior, we copy SwipeHelper,
FlingAnimationUtils, and Interpolators. We also apply elevation
to notifications and reveal a darker color beneath when dismissing.

Bug: 32410600
Change-Id: I9fbf10e73bb4996f17ef061c856efb013967d972
/packages/apps/Launcher3/src/com/android/launcher3/notification/NotificationListener.java