Merge "Prevent oem locked and default apps from being blocked"
This commit is contained in:
committed by
Android (Google) Code Review
commit
560e175ade
@@ -126,6 +126,11 @@ public abstract class NotificationPreferenceController extends AbstractPreferenc
|
||||
return mChannel.getImportance() == IMPORTANCE_NONE;
|
||||
}
|
||||
|
||||
if (mChannel.isImportanceLockedByOEM()
|
||||
|| mChannel.isImportanceLockedByCriticalDeviceFunction()) {
|
||||
return false;
|
||||
}
|
||||
|
||||
return mChannel.isBlockableSystem() || !mAppRow.systemApp
|
||||
|| mChannel.getImportance() == IMPORTANCE_NONE;
|
||||
}
|
||||
|
Reference in New Issue
Block a user