Hide block pref on non-configurable channels
Test: robotests Bug: 109875297 Change-Id: I164ae2e07d178db9e84746e5c59f0968e6c77eae
This commit is contained in:
@@ -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