diff options
author | yueg <yueg@google.com> | 2017-10-03 15:25:41 -0700 |
---|---|---|
committer | Eric Erfanian <erfanian@google.com> | 2017-10-04 08:17:39 -0700 |
commit | 01a964d7fbba63c670062ffca9a0ebe30cdcb1ff (patch) | |
tree | f02220a25fa0c7171d6f9648f1856750982f3e7d /AndroidManifest.xml | |
parent | 69ff7c1717c363027a79a454da91e1ca59c1dd3e (diff) |
Make incoming and ongoing call notification foreground and highest priority.
Use startForeground()/stopForeground() for posting notification instead of NotificationManager.notify()/cancel(). It makes incoming and ongoing notification foreground and not able to snooze. It also colorize ongoing call notification for Android O, since we already setColorized().
Use setPriority(Notification.PRIORITY_MAX) for pre-O, and NotificationManager.IMPORTANCE_MAX for O. It makes incoming and ongoing notification stay on the top.
Test: StatusBarNotifierTest*2
PiperOrigin-RevId: 170924163
Change-Id: Iab1415b0161a4623a1ccf52d3948f32b6f93eeb2
Diffstat (limited to 'AndroidManifest.xml')
0 files changed, 0 insertions, 0 deletions