summaryrefslogtreecommitdiffstats
path: root/src/com/android/launcher3/notification/NotificationListener.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/com/android/launcher3/notification/NotificationListener.java')
-rw-r--r--src/com/android/launcher3/notification/NotificationListener.java9
1 files changed, 3 insertions, 6 deletions
diff --git a/src/com/android/launcher3/notification/NotificationListener.java b/src/com/android/launcher3/notification/NotificationListener.java
index 75a1b8ab5..cb37f0852 100644
--- a/src/com/android/launcher3/notification/NotificationListener.java
+++ b/src/com/android/launcher3/notification/NotificationListener.java
@@ -28,7 +28,6 @@ import android.support.v4.util.Pair;
import android.text.TextUtils;
import com.android.launcher3.LauncherModel;
-import com.android.launcher3.Utilities;
import com.android.launcher3.config.FeatureFlags;
import com.android.launcher3.util.PackageUserKey;
@@ -219,11 +218,9 @@ public class NotificationListener extends NotificationListenerService {
}
private boolean shouldBeFilteredOut(StatusBarNotification sbn) {
- if (Utilities.isAtLeastO()) {
- getCurrentRanking().getRanking(sbn.getKey(), mTempRanking);
- if (!mTempRanking.canShowBadge()) {
- return true;
- }
+ getCurrentRanking().getRanking(sbn.getKey(), mTempRanking);
+ if (!mTempRanking.canShowBadge()) {
+ return true;
}
Notification notification = sbn.getNotification();
if (mTempRanking.getChannel().getId().equals(NotificationChannel.DEFAULT_CHANNEL_ID)) {