am 8783d3fe: Make all icon fields & extras sent to listeners backward-compatible.
* commit '8783d3fe761ab943ad73e7c58252806df9e401da': Make all icon fields & extras sent to listeners backward-compatible.
This commit is contained in:
@@ -468,6 +468,8 @@ public abstract class NotificationListenerService extends Service {
|
||||
for (int i = 0; i < N; i++) {
|
||||
Notification notification = list.get(i).getNotification();
|
||||
Builder.rebuild(getContext(), notification);
|
||||
// convert icon metadata to legacy format for older clients
|
||||
createLegacyIconExtras(notification);
|
||||
}
|
||||
return list.toArray(new StatusBarNotification[N]);
|
||||
} catch (android.os.RemoteException ex) {
|
||||
|
||||
Reference in New Issue
Block a user