diff options
| author | 2019-05-15 01:42:04 +0000 | |
|---|---|---|
| committer | 2019-05-15 01:42:04 +0000 | |
| commit | 92f755e33926f62c7120df6618b0071d5a794ae3 (patch) | |
| tree | 143e3c69f15902fb982ba8dc0675b9d9b8e23782 | |
| parent | 9637326ea8124b79bea08b8183da4d5853a08c23 (diff) | |
| parent | 8b62e317efc090e91212fad6731d33c2e7fde126 (diff) | |
Merge "Fix legacy recents crash on Go devices" into qt-dev
| -rw-r--r-- | packages/SystemUI/legacy/recents/src/com/android/systemui/recents/LegacyRecentsImpl.java | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/packages/SystemUI/legacy/recents/src/com/android/systemui/recents/LegacyRecentsImpl.java b/packages/SystemUI/legacy/recents/src/com/android/systemui/recents/LegacyRecentsImpl.java index b7bb751c1582..a150de95fcf0 100644 --- a/packages/SystemUI/legacy/recents/src/com/android/systemui/recents/LegacyRecentsImpl.java +++ b/packages/SystemUI/legacy/recents/src/com/android/systemui/recents/LegacyRecentsImpl.java @@ -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(); |