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

Commit f4fce294 authored by Adam Cohen's avatar Adam Cohen
Browse files

Don't reload the Recents model if it's already loaded

-> This was causing a race condition which would lead to many black
   thumbnails when invoking overview from home

Change-Id: I24221fd42a18a339c1b8bbdc63e63513561be9b9
parent 6d6fe041
Loading
Loading
Loading
Loading
+1 −3
Original line number Diff line number Diff line
@@ -272,10 +272,8 @@ public class TwoStepSwipeController extends AnimatorListenerAdapter
                    onRecentsPlanLoaded(recentsModel.getLastLoadPlan());
                } else {
                    mDragPauseDetector.addDisabledFlags(FLAG_RECENTS_PLAN_LOADING);
                }
                // Reload again so that we get the latest list
                // TODO: Use callback instead of polling everytime
                    recentsModel.loadTasks(-1, this::onRecentsPlanLoaded);
                }
            } else {
                mDragPauseDetector.addDisabledFlags(FLAG_OVERVIEW_DISABLED);
            }