commit | e47896cb915a0d7f1e7fb14901ec4f9b6649366a | [log] [tgz] |
---|---|---|
author | Samuel Fufa <sfufa@google.com> | Mon Jul 20 12:30:02 2020 -0700 |
committer | Samuel Fufa <sfufa@google.com> | Mon Jul 20 12:41:07 2020 -0700 |
tree | 344df95e27a7a545b3ffda0c8b8c0fa3df84af2e | |
parent | a8c08584a7bb295a2f14eafd2923a2688d3e3626 [diff] |
Invalidate stale BgDataModel when predictions are disabled Launcher stores ItemInfos for cached predictions in list BgDataModel.cachedPredictedItems on Launcher start (LoaderTask#run). The list reused if launcher has to rebind UI. Hence, the list should be cleared if launcher receives empty predictions. Bug: 161245294 Test: Manual Change-Id: I275655d5f52f6a6e5297473dd2f642728c1964a6