Merge "Prevent oem locked and default apps from being blocked"

This commit is contained in:
Julia Reynolds
2019-03-29 15:25:58 +00:00
committed by Android (Google) Code Review
2 changed files with 29 additions and 0 deletions

View File

@@ -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;
}