Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit d87e4ec2 authored by Lyn's avatar Lyn Committed by Lyn Han
Browse files

Log when entry is saved for removal after expand

Fixes: 360188098
Bug: 359628765
Test: adb shell cmd statusbar echo -b NotifHeadsUpLog:verbose
      adb reboot
      adb logcat | grep HeadsUpManager
Flag: com.android.systemui.notification_avalanche_throttle_hun
Change-Id: I69363cfebc881a8fd8634463b6cc99359d11d9a5
parent 51c377ec
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -624,6 +624,7 @@ public class HeadsUpManagerPhone extends BaseHeadsUpManager implements
                            mOnReorderingAllowedListener);
                } else if (mTrackingHeadsUp) {
                    mEntriesToRemoveAfterExpand.add(entry);
                    mLogger.logRemoveEntryAfterExpand(entry);
                } else if (mVisualStabilityProvider.isReorderingAllowed()
                        || entry.showingPulsing()) {
                    removeEntry(entry.getKey(), "createRemoveRunnable");
+8 −0
Original line number Diff line number Diff line
@@ -293,6 +293,14 @@ constructor(@NotificationHeadsUpLog private val buffer: LogBuffer) {
            { "has pinned notification changed to $bool1" }
        )
    }

    fun logRemoveEntryAfterExpand(entry: NotificationEntry) {
        buffer.log(TAG, VERBOSE, {
            str1 = entry.logKey
        }, {
            "remove entry after expand: $str1"
        })
    }
}

private const val TAG = "HeadsUpManager"