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
This commit is contained in:
1 parent
6d6fe041c7
commit
f4fce2943e
1 file changed
+1
-3
@@ -272,10 +272,8 @@ public class TwoStepSwipeController extends AnimatorListenerAdapter
|
||||
onRecentsPlanLoaded(recentsModel.getLastLoadPlan());
|
||||
} else {
|
||||
mDragPauseDetector.addDisabledFlags(FLAG_RECENTS_PLAN_LOADING);
|
||||
recentsModel.loadTasks(-1, this::onRecentsPlanLoaded);
|
||||
}
|
||||
// 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);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user