Resume UI update on user active

resume UI update for hybrid hotseat if user returns to launcher while app launch transition is animating.

Bug: 142753423
Test: Manual
Change-Id: I11ffa080bb78e7b4269747b1602b32d706f2405d
This commit is contained in:
Samuel Fufa 2020-03-24 16:46:12 -07:00
parent 254862120a
commit 28f3136c6a
1 changed files with 2 additions and 2 deletions

View File

@ -183,8 +183,8 @@ public class QuickstepLauncher extends BaseQuickstepLauncher {
onStateOrResumeChanged();
}
if ((changeBits & ACTIVITY_STATE_STARTED) != 0 && mHotseatPredictionController != null
&& (getActivityFlags() & ACTIVITY_STATE_USER_ACTIVE) == 0) {
if (mHotseatPredictionController != null && ((changeBits & ACTIVITY_STATE_STARTED) != 0
|| (changeBits & getActivityFlags() & ACTIVITY_STATE_DEFERRED_RESUMED) != 0)) {
mHotseatPredictionController.setPauseUIUpdate(false);
}
}