OSDN Git Service

Not reseting the last fullscreenintent time when reinflating
authorSelim Cinek <cinek@google.com>
Fri, 21 Jul 2017 23:18:21 +0000 (16:18 -0700)
committerSelim Cinek <cinek@google.com>
Fri, 21 Jul 2017 23:24:44 +0000 (23:24 +0000)
It didn't make sense to reset the last fullscreen intent launch
time when reinflating a notification, that should be totally
independant.

Test: manual, see test app in bug
Change-Id: I3ae733ce95960042a98eb753a592845d4f49eb8c
Fixes: 63391373

packages/SystemUI/src/com/android/systemui/statusbar/NotificationData.java

index e5b1afe..68802b9 100644 (file)
@@ -107,7 +107,6 @@ public class NotificationData {
          * Resets the notification entry to be re-used.
          */
         public void reset() {
-            lastFullScreenIntentLaunchTime = NOT_LAUNCHED_YET;
             if (row != null) {
                 row.reset();
             }
@@ -122,6 +121,7 @@ public class NotificationData {
         }
 
         public void notifyFullScreenIntentLaunched() {
+            setInterruption();
             lastFullScreenIntentLaunchTime = SystemClock.elapsedRealtime();
         }