diff options
author | Julia Reynolds <juliacr@google.com> | 2016-08-16 15:00:25 -0400 |
---|---|---|
committer | Julia Reynolds <juliacr@google.com> | 2016-09-15 08:42:35 -0400 |
commit | b5e44b796618c376cf535e43aaa86ea4522e7770 (patch) | |
tree | e68121690f5cc9baccad2b1d37fd037b8fc92a93 /tools/aapt2/diff/Diff.cpp | |
parent | 3cece22080fea16eccf41b62a5222774b194545f (diff) |
Add Notification channels
In this iteration:
-Every app gets a default channel that notifications will be posted
to if they don't specify a channel themselves. The default channel
inherits app-wide settings on upgrade.
-Apps can create new channels without user approval, but apps
cannot change the name of a channel once created, nor can they ever
set the importance.
- When a notification is posted:
- If the channel is marked as 'vibrates', vibration will be
applied to notifications that lack a vibration. unlike the default
notification flag, notifications will retain their custom vibration
if given
- Same with sound and lights
- A notification's importance is the min of the app and channel
importance
- A notification can bypass dnd if: either the app or channel settings
say it can
- A notification's show on lockscreen setting comes from the app first,
and the channel second if the app has no preference
Tests: in cl. also there's a cl for cts and a test app.
Change-Id: I630f99df655800b00586dcfab538d320d04fe0f0
Diffstat (limited to 'tools/aapt2/diff/Diff.cpp')
0 files changed, 0 insertions, 0 deletions