Merge "Do not restart activity when pinned set changes - just re-sort." into qt-qpr1-dev

This commit is contained in:
Alison Cichowlas
2019-12-18 15:41:33 +00:00
committed by Android (Google) Code Review
2 changed files with 10 additions and 3 deletions

View File

@@ -815,12 +815,19 @@ public class ChooserActivity extends ResolverActivity {
return new PackageMonitor() {
@Override
public void onSomePackagesChanged() {
mAdapter.handlePackagesChanged();
bindProfileView();
handlePackagesChanged();
}
};
}
/**
* Update UI to reflect changes in data.
*/
public void handlePackagesChanged() {
mAdapter.handlePackagesChanged();
bindProfileView();
}
private void onCopyButtonClicked(View v) {
Intent targetIntent = getTargetIntent();
if (targetIntent == null) {

View File

@@ -84,7 +84,7 @@ public class ResolverTargetActionsDialogFragment extends DialogFragment
}
// Force the chooser to requery and resort things
getActivity().recreate();
((ChooserActivity) getActivity()).handlePackagesChanged();
break;
case APP_INFO_INDEX:
Intent in = new Intent().setAction(Settings.ACTION_APPLICATION_DETAILS_SETTINGS)