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

Commit bebb36cc authored by Lyn Han's avatar Lyn Han Committed by Android (Google) Code Review
Browse files

Merge "Immediately cancelAutoRemovalCallbacks for removed entry" into main

parents 17f58aa6 41bd90d2
Loading
Loading
Loading
Loading
+6 −2
Original line number Diff line number Diff line
@@ -908,8 +908,12 @@ public abstract class BaseHeadsUpManager implements HeadsUpManager {
                    mLogger.logAutoRemoveCanceled(mEntry, reason);
                }
            };
            mAvalancheController.update(this, runnable,
                    reason + " removeAutoRemovalCallbacks");
            if (isHeadsUpEntry(this.mEntry.getKey())) {
                mAvalancheController.update(this, runnable, reason + " cancelAutoRemovalCallbacks");
            } else {
                // Just removed
                runnable.run();
            }
        }

        public void scheduleAutoRemovalCallback(FinishTimeUpdater finishTimeCalculator,