Merge "Fix legacy recents crash on Go devices" into qt-dev

This commit is contained in:
TreeHugger Robot
2019-05-15 01:42:04 +00:00
committed by Android (Google) Code Review

View File

@@ -662,11 +662,17 @@ public class LegacyRecentsImpl implements RecentsImplementation {
public final void onBusEvent(ExpandPipEvent event) {
PipUI pipUi = getComponent(PipUI.class);
if (pipUi == null) {
return;
}
pipUi.expandPip();
}
public final void onBusEvent(HidePipMenuEvent event) {
PipUI pipUi = getComponent(PipUI.class);
if (pipUi == null) {
return;
}
event.getAnimationTrigger().increment();
pipUi.hidePipMenu(() -> {
event.getAnimationTrigger().increment();