Merge "Refresh both lists and pinning preferences on change." into rvc-dev

This commit is contained in:
Alison Cichowlas
2020-06-22 12:58:57 +00:00
committed by Android (Google) Code Review

View File

@@ -1007,8 +1007,11 @@ public class ChooserActivity extends ResolverActivity implements
* <p>If {@code listAdapter} is {@code null}, both profile list adapters are updated.
*/
private void handlePackagesChanged(@Nullable ResolverListAdapter listAdapter) {
// Refresh pinned items
mPinnedSharedPrefs = getPinnedSharedPrefs(this);
if (listAdapter == null) {
mChooserMultiProfilePagerAdapter.getActiveListAdapter().handlePackagesChanged();
mChooserMultiProfilePagerAdapter.getInactiveListAdapter().handlePackagesChanged();
} else {
listAdapter.handlePackagesChanged();
}