Show scrim immediately when animating to overview from app through KQS
Flag: LEGACY ENABLE_KEYBOARD_QUICK_SWITCH ENABLED Fixes: 324888882 Test: opened overview from app/home with finger swipe/KQS/overview button Change-Id: Ia4a15f5a64956ec56fc9aae3511173219616245e
This commit is contained in:
@@ -408,11 +408,14 @@ public abstract class BaseActivityInterface<STATE_TYPE extends BaseState<STATE_T
|
||||
if (activity == null) {
|
||||
return null;
|
||||
}
|
||||
RecentsView recentsView = activity.getOverviewPanel();
|
||||
STATE_TYPE state = stateFromGestureEndTarget(endTarget);
|
||||
ScrimView scrimView = activity.getScrimView();
|
||||
ObjectAnimator anim = ObjectAnimator.ofArgb(scrimView, VIEW_BACKGROUND_COLOR,
|
||||
getOverviewScrimColorForState(activity, state));
|
||||
anim.setDuration(duration);
|
||||
anim.setInterpolator(recentsView == null || !recentsView.isKeyboardTaskFocusPending()
|
||||
? LINEAR : INSTANT);
|
||||
return anim;
|
||||
}
|
||||
return null;
|
||||
|
||||
Reference in New Issue
Block a user