Merge "Do not restart activity when pinned set changes - just re-sort." into qt-qpr1-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
0416784c2e
@@ -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) {
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user