Use task display id when starting split screen

Before starting split screen animation, we dismiss the task view, which
can detach the clicked view immediately, if animations are dissabled.
That will cause NPE as view.getDisplay will be null

Bug: 138793362
Change-Id: I611f6a824f756eceeed57aac5afdf38f421ff8d2
This commit is contained in:
Sunny Goyal committed 2019-08-05 11:24:43 -07:00
1 parent cf92f3edb0
commit 1eade2f947
1 file changed
+1 -2
@@ -207,8 +207,7 @@ public class TaskSystemShortcut<T extends SystemShortcut> extends SystemShortcut
}
};
WindowManagerWrapper.getInstance().overridePendingAppTransitionMultiThumbFuture(
future, animStartedListener, mHandler, true /* scaleUp */,
v.getDisplay().getDisplayId());
future, animStartedListener, mHandler, true /* scaleUp */, displayId);
}
});
}