OSDN Git Service

Add condition to ignore invalid packages in NotificationChannelSlice
authorYanting Yang <yantingyang@google.com>
Mon, 25 Mar 2019 15:25:44 +0000 (23:25 +0800)
committerYanting Yang <yantingyang@google.com>
Thu, 28 Mar 2019 10:01:11 +0000 (18:01 +0800)
commitb1d846cbbd0a37a97ef0eaa8b5b27157257d1768
treedb5319f8800393a8bc44cca303c95e51ec0ba773
parent7bac0033896f49635782a2840c00c198467065eb
Add condition to ignore invalid packages in NotificationChannelSlice

If all displayable notification channels of package are turned off,
stop showing notification channel slice of package.

Bug: 124480122
Test: robotests
Change-Id: I3ce9ebc4cca18dac3b4b6f15c28c697b72df81e3
src/com/android/settings/homepage/contextualcards/slices/NotificationChannelSlice.java
tests/robotests/src/com/android/settings/homepage/contextualcards/slices/NotificationChannelSliceTest.java