Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 0164d7d3 authored by Tony Wickham's avatar Tony Wickham
Browse files

Add null check for empty recents view

Bug: 77533523
Change-Id: I8ba58d3ed35212b6c06e689281cb25b55ac79ae2
parent b3ad0edc
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -1064,7 +1064,10 @@ public abstract class RecentsView<T extends BaseActivity>
    @Override
    protected void notifyPageSwitchListener(int prevPage) {
        super.notifyPageSwitchListener(prevPage);
        getChildAt(mCurrentPage).sendAccessibilityEvent(AccessibilityEvent.TYPE_VIEW_FOCUSED);
        View currChild = getChildAt(mCurrentPage);
        if (currChild != null) {
            currChild.sendAccessibilityEvent(AccessibilityEvent.TYPE_VIEW_FOCUSED);
        }
    }

    @Override