Update areChannelsBypassingDnd from PreferencesHelper correctly

The previous implementation overwrites the channel permissions associated with manual DND. This change adds a new method to ZenModeHelper to explicitly only set the hasPriorityChannels (areChannelsBypassingDnd) bit.

Fixes: 372302344
Test: manual to confirm correct behavior, ZenModeHelperTest, PreferencesHelperTest
Flag: android.app.modes_ui
Change-Id: I38e8ff6187209ca2464c83490caae74847f4f3cd
4 files changed