Loading services/core/java/com/android/server/notification/NotificationComparator.java +3 −9 Original line number Diff line number Diff line Loading @@ -23,7 +23,6 @@ import android.content.BroadcastReceiver; import android.content.Context; import android.content.Intent; import android.content.IntentFilter; import android.provider.Settings; import android.telecom.TelecomManager; import com.android.internal.util.NotificationMessagingUtil; Loading Loading @@ -55,15 +54,10 @@ public class NotificationComparator final boolean isLeftHighImportance = leftImportance >= IMPORTANCE_DEFAULT; final boolean isRightHighImportance = rightImportance >= IMPORTANCE_DEFAULT; // With new interruption model, prefer importance bucket above all other criteria // (to ensure buckets are contiguous) if (Settings.Secure.getInt(mContext.getContentResolver(), Settings.Secure.NOTIFICATION_NEW_INTERRUPTION_MODEL, 1) == 1) { if (isLeftHighImportance != isRightHighImportance) { // by importance bucket, high importance higher than low importance return -1 * Boolean.compare(isLeftHighImportance, isRightHighImportance); } } // first all colorized notifications boolean leftImportantColorized = isImportantColorized(left); Loading Loading
services/core/java/com/android/server/notification/NotificationComparator.java +3 −9 Original line number Diff line number Diff line Loading @@ -23,7 +23,6 @@ import android.content.BroadcastReceiver; import android.content.Context; import android.content.Intent; import android.content.IntentFilter; import android.provider.Settings; import android.telecom.TelecomManager; import com.android.internal.util.NotificationMessagingUtil; Loading Loading @@ -55,15 +54,10 @@ public class NotificationComparator final boolean isLeftHighImportance = leftImportance >= IMPORTANCE_DEFAULT; final boolean isRightHighImportance = rightImportance >= IMPORTANCE_DEFAULT; // With new interruption model, prefer importance bucket above all other criteria // (to ensure buckets are contiguous) if (Settings.Secure.getInt(mContext.getContentResolver(), Settings.Secure.NOTIFICATION_NEW_INTERRUPTION_MODEL, 1) == 1) { if (isLeftHighImportance != isRightHighImportance) { // by importance bucket, high importance higher than low importance return -1 * Boolean.compare(isLeftHighImportance, isRightHighImportance); } } // first all colorized notifications boolean leftImportantColorized = isImportantColorized(left); Loading