Set "usingRemoteAnim" for fallback recents

Ensure fallback recents uses the correct layout animation by hooking
into usingRemoteAnim API.

Bug: 132112131
Test: Manual test
Change-Id: I9bb96dbf436018e5488ede0c5ca48af787180aec
This commit is contained in:
Kevin 2019-05-10 10:28:07 -07:00
parent 0f07b87420
commit 32f55bf02d
1 changed files with 1 additions and 1 deletions

View File

@ -45,12 +45,12 @@ public final class FallbackActivityControllerHelper extends
@Override
public AnimationFactory prepareRecentsUI(RecentsActivity activity, boolean activityVisible,
boolean animateActivity, Consumer<AnimatorPlaybackController> callback) {
// TODO: Logic for setting remote animation
if (activityVisible) {
return (transitionLength) -> { };
}
IconRecentsView rv = activity.getOverviewPanel();
rv.setUsingRemoteAnimation(true);
rv.setAlpha(0);
return new AnimationFactory() {