Fix visibility of settings on channel page
Properly hide fields if the parent app or group is blocked. This is needed because apps can link directly to this screen. Test: atest Fixes: 130184191 Change-Id: I8c39410574940615fbb607a201e20e480ec02d87
This commit is contained in:
@@ -73,12 +73,12 @@ public abstract class NotificationPreferenceController extends AbstractPreferenc
|
||||
if (mAppRow.banned) {
|
||||
return false;
|
||||
}
|
||||
if (mChannel != null) {
|
||||
return mChannel.getImportance() != IMPORTANCE_NONE;
|
||||
}
|
||||
if (mChannelGroup != null) {
|
||||
return !mChannelGroup.isBlocked();
|
||||
}
|
||||
if (mChannel != null) {
|
||||
return mChannel.getImportance() != IMPORTANCE_NONE;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user