From 142e2dab97fd958d884d48e4e3170b7833aa66ba Mon Sep 17 00:00:00 2001 From: Rohan Shah Date: Thu, 14 Jun 2018 13:14:18 -0700 Subject: [PATCH] [Notif] Reset falsing check for blocking helper Currently, if you long press on the notif in lock screen and then are interacting with the blocking helper UI (NotificationInfo), the content automatically closes after 8 seconds even if you've hit stop/undo/etc. Instead of letting this happen, reset the timeout. Test: Manually that it doesn't timeout after 8s on LS after update Bug: 110213459 Change-Id: I0169a7749b718714595bd7239375308f30bf4c43 --- .../src/com/android/systemui/statusbar/NotificationInfo.java | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/packages/SystemUI/src/com/android/systemui/statusbar/NotificationInfo.java b/packages/SystemUI/src/com/android/systemui/statusbar/NotificationInfo.java index e52829a088e1..bd40686da012 100644 --- a/packages/SystemUI/src/com/android/systemui/statusbar/NotificationInfo.java +++ b/packages/SystemUI/src/com/android/systemui/statusbar/NotificationInfo.java @@ -416,6 +416,12 @@ public class NotificationInfo extends LinearLayout implements NotificationGuts.G } }); mExpandAnimation.start(); + + // Since we're swapping/update the content, reset the timeout so the UI can't close + // immediately after the update. + if (mGutsContainer != null) { + mGutsContainer.resetFalsingCheck(); + } } @Override -- 2.11.0