Merge "Hide block pref on non-configurable channels"
This commit is contained in:
committed by
Android (Google) Code Review
commit
fe805d7a41
@@ -138,11 +138,11 @@ public abstract class NotificationPreferenceController extends AbstractPreferenc
|
||||
|
||||
protected boolean isChannelBlockable() {
|
||||
if (mChannel != null && mAppRow != null) {
|
||||
if (!mAppRow.systemApp) {
|
||||
return true;
|
||||
if (!isChannelConfigurable()) {
|
||||
return mChannel.getImportance() == IMPORTANCE_NONE;
|
||||
}
|
||||
|
||||
return mChannel.isBlockableSystem()
|
||||
return mChannel.isBlockableSystem() || !mAppRow.systemApp
|
||||
|| mChannel.getImportance() == IMPORTANCE_NONE;
|
||||
}
|
||||
return false;
|
||||
|
||||
Reference in New Issue
Block a user