Merge "Refresh both lists and pinning preferences on change." into rvc-dev am: 582aeba50c am: 45b4885a90
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/11947583 Change-Id: Idb3549c950ca5ba9dc432d5fd557ef64f1ec42e8
This commit is contained in:
@@ -1007,8 +1007,11 @@ public class ChooserActivity extends ResolverActivity implements
|
|||||||
* <p>If {@code listAdapter} is {@code null}, both profile list adapters are updated.
|
* <p>If {@code listAdapter} is {@code null}, both profile list adapters are updated.
|
||||||
*/
|
*/
|
||||||
private void handlePackagesChanged(@Nullable ResolverListAdapter listAdapter) {
|
private void handlePackagesChanged(@Nullable ResolverListAdapter listAdapter) {
|
||||||
|
// Refresh pinned items
|
||||||
|
mPinnedSharedPrefs = getPinnedSharedPrefs(this);
|
||||||
if (listAdapter == null) {
|
if (listAdapter == null) {
|
||||||
mChooserMultiProfilePagerAdapter.getActiveListAdapter().handlePackagesChanged();
|
mChooserMultiProfilePagerAdapter.getActiveListAdapter().handlePackagesChanged();
|
||||||
|
mChooserMultiProfilePagerAdapter.getInactiveListAdapter().handlePackagesChanged();
|
||||||
} else {
|
} else {
|
||||||
listAdapter.handlePackagesChanged();
|
listAdapter.handlePackagesChanged();
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user