OSDN Git Service

Priority only dnd doesn't change ringer
authorBeverly <beverlyt@google.com>
Mon, 26 Mar 2018 15:10:10 +0000 (11:10 -0400)
committerBeverly <beverlyt@google.com>
Mon, 26 Mar 2018 15:10:10 +0000 (11:10 -0400)
commit9e4214db6bb5a9ae2e87fbf4248982aa06787f5a
tree2858fec06f1d0ca7c1fbc7588ba8e27a2a0bafc9
parentb133cbfd0b5afb0217ee45c8e26847465c6a717a
Priority only dnd doesn't change ringer

Streams are muted in AudioService#muteRingerModeStreams,
so there's no need to change the ringer when entering
priority only dnd.  Note: total silence and alarms only will
still change the ringer to silent.

Fixes: 76152626
Test: ZenModeHelperTest
Test: manual (toggle dnd on when ringer set to vibrate/normal
and observe the ringer icon remains the same with dnd badge)

Change-Id: I56cb90928362c18f8bae60c17f313a8a2621dd28
packages/SystemUI/src/com/android/systemui/volume/VolumeDialogImpl.java
services/core/java/com/android/server/notification/ZenModeHelper.java
services/tests/uiservicestests/src/com/android/server/notification/ZenModeHelperTest.java