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:
parent
0f07b87420
commit
32f55bf02d
|
@ -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() {
|
||||
|
|
Loading…
Reference in New Issue