Prevent oem locked and default apps from being blocked
Test: robotests Fixes: 129358763 Change-Id: I999b017f9f7389424e499a44cfac43711acbbbea
This commit is contained in:
@@ -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