Fix hiding of channel fields

When channel is off

Test: atest
Bug: 132971502
Change-Id: I5772266e022e5ebb5dbf20f231ca30fad95e3db7
This commit is contained in:
Julia Reynolds
2019-05-20 14:03:07 -04:00
parent 76cf0dbddd
commit 72bdef0781
2 changed files with 6 additions and 2 deletions

View File

@@ -74,7 +74,9 @@ public abstract class NotificationPreferenceController extends AbstractPreferenc
return false;
}
if (mChannelGroup != null) {
return !mChannelGroup.isBlocked();
if (mChannelGroup.isBlocked()) {
return false;
}
}
if (mChannel != null) {
return mChannel.getImportance() != IMPORTANCE_NONE;