OSDN Git Service

Fixing issue with multiple focus timer animations running.
authorWinson <winsonc@google.com>
Thu, 21 Jan 2016 01:11:29 +0000 (17:11 -0800)
committerWinson <winsonc@google.com>
Fri, 22 Jan 2016 00:07:39 +0000 (16:07 -0800)
Change-Id: I7243f30b917bb311e46efa1e09b44440a0236f07

packages/SystemUI/src/com/android/systemui/recents/views/TaskStackView.java

index de472bc..a314ae2 100644 (file)
@@ -814,8 +814,6 @@ public class TaskStackView extends FrameLayout implements TaskStack.TaskStackCal
 
         // Reset the last focused task state if changed
         if (mFocusedTask != null) {
-            resetFocusedTask(mFocusedTask);
-
             // Cancel the timer indicator, if applicable
             if (showTimerIndicator) {
                 final TaskView tv = getChildViewForTask(mFocusedTask);
@@ -823,6 +821,8 @@ public class TaskStackView extends FrameLayout implements TaskStack.TaskStackCal
                     tv.getHeaderView().cancelFocusTimerIndicator();
                 }
             }
+
+            resetFocusedTask(mFocusedTask);
         }
 
         boolean willScroll = false;