Merge "Fix legacy recents crash on Go devices" into qt-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
92f755e339
@@ -662,11 +662,17 @@ public class LegacyRecentsImpl implements RecentsImplementation {
|
|||||||
|
|
||||||
public final void onBusEvent(ExpandPipEvent event) {
|
public final void onBusEvent(ExpandPipEvent event) {
|
||||||
PipUI pipUi = getComponent(PipUI.class);
|
PipUI pipUi = getComponent(PipUI.class);
|
||||||
|
if (pipUi == null) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
pipUi.expandPip();
|
pipUi.expandPip();
|
||||||
}
|
}
|
||||||
|
|
||||||
public final void onBusEvent(HidePipMenuEvent event) {
|
public final void onBusEvent(HidePipMenuEvent event) {
|
||||||
PipUI pipUi = getComponent(PipUI.class);
|
PipUI pipUi = getComponent(PipUI.class);
|
||||||
|
if (pipUi == null) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
event.getAnimationTrigger().increment();
|
event.getAnimationTrigger().increment();
|
||||||
pipUi.hidePipMenu(() -> {
|
pipUi.hidePipMenu(() -> {
|
||||||
event.getAnimationTrigger().increment();
|
event.getAnimationTrigger().increment();
|
||||||
|
|||||||
Reference in New Issue
Block a user