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

Commit e924341d authored by Winson Chung's avatar Winson Chung Committed by Android (Google) Code Review
Browse files

Merge "Fix crash when creating overview proxy service from background thread" into pi-dev

parents 44eae19b 22ee4ac2
Loading
Loading
Loading
Loading
+7 −1
Original line number Diff line number Diff line
@@ -123,10 +123,16 @@ public class RecentsImpl implements ActivityOptions.OnAnimationFinishedListener
     */
    class TaskStackListenerImpl extends SysUiTaskStackChangeListener {

        private OverviewProxyService mOverviewProxyService;

        public TaskStackListenerImpl() {
            mOverviewProxyService = Dependency.get(OverviewProxyService.class);
        }

        @Override
        public void onTaskStackChangedBackground() {
            // Skip background preloading recents in SystemUI if the overview services is bound
            if (Dependency.get(OverviewProxyService.class).isEnabled()) {
            if (mOverviewProxyService.isEnabled()) {
                return;
            }