From 4dea51aa8ba5d34e3972d2bcab3f43efa3651622 Mon Sep 17 00:00:00 2001 From: Nick Date: Fri, 25 Oct 2024 18:04:52 +0200 Subject: [PATCH] Status bar lyrics: Fix bug where some lyric would be wrongly ignored FLAG_ONLY_UPDATE_TICKER may not always be set by the app because it will prevent update of notification content in Flyme OS, follow Flyme OS behaviour to classify what lyric is --- .../android/systemui/statusbar/phone/LyricViewController.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/packages/SystemUI/src/com/android/systemui/statusbar/phone/LyricViewController.java b/packages/SystemUI/src/com/android/systemui/statusbar/phone/LyricViewController.java index a8a52a25f9e2..653c8151fac1 100644 --- a/packages/SystemUI/src/com/android/systemui/statusbar/phone/LyricViewController.java +++ b/packages/SystemUI/src/com/android/systemui/statusbar/phone/LyricViewController.java @@ -114,8 +114,7 @@ public void onNotificationPosted(StatusBarNotification sbn, RankingMap rankingMa if (!mEnabled) return; Notification notification = sbn.getNotification(); - boolean isLyric = ((notification.flags & Notification.FLAG_ALWAYS_SHOW_TICKER) != 0) - && ((notification.flags & Notification.FLAG_ONLY_UPDATE_TICKER) != 0); + boolean isLyric = (notification.flags & Notification.FLAG_ALWAYS_SHOW_TICKER) != 0; boolean isCurrentNotification = mCurrentNotificationId == sbn.getId() && TextUtils.equals(sbn.getPackageName(), mCurrentNotificationPackage);