Loading core/java/com/android/internal/app/ChooserActivity.java +11 −4 Original line number Diff line number Diff line Loading @@ -859,13 +859,20 @@ public class ChooserActivity extends ResolverActivity implements return new PackageMonitor() { @Override public void onSomePackagesChanged() { handlePackagesChanged(); } }; } /** * Update UI to reflect changes in data. */ public void handlePackagesChanged() { // TODO(arangelov): Dispatch this to all adapters when we have the helper methods // in a follow-up CL mChooserMultiProfilePagerAdapter.getActiveListAdapter().handlePackagesChanged(); updateProfileViewButton(); } }; } private void onCopyButtonClicked(View v) { Intent targetIntent = getTargetIntent(); Loading core/java/com/android/internal/app/ResolverTargetActionsDialogFragment.java +1 −1 Original line number Diff line number Diff line Loading @@ -116,7 +116,7 @@ public class ResolverTargetActionsDialogFragment extends DialogFragment pinComponent(mTargetInfos.get(which).getResolvedComponentName()); } // Force the chooser to requery and resort things getActivity().recreate(); ((ChooserActivity) getActivity()).handlePackagesChanged(); } else { // Last item in dialog is App Info Intent in = new Intent().setAction(Settings.ACTION_APPLICATION_DETAILS_SETTINGS) Loading Loading
core/java/com/android/internal/app/ChooserActivity.java +11 −4 Original line number Diff line number Diff line Loading @@ -859,13 +859,20 @@ public class ChooserActivity extends ResolverActivity implements return new PackageMonitor() { @Override public void onSomePackagesChanged() { handlePackagesChanged(); } }; } /** * Update UI to reflect changes in data. */ public void handlePackagesChanged() { // TODO(arangelov): Dispatch this to all adapters when we have the helper methods // in a follow-up CL mChooserMultiProfilePagerAdapter.getActiveListAdapter().handlePackagesChanged(); updateProfileViewButton(); } }; } private void onCopyButtonClicked(View v) { Intent targetIntent = getTargetIntent(); Loading
core/java/com/android/internal/app/ResolverTargetActionsDialogFragment.java +1 −1 Original line number Diff line number Diff line Loading @@ -116,7 +116,7 @@ public class ResolverTargetActionsDialogFragment extends DialogFragment pinComponent(mTargetInfos.get(which).getResolvedComponentName()); } // Force the chooser to requery and resort things getActivity().recreate(); ((ChooserActivity) getActivity()).handlePackagesChanged(); } else { // Last item in dialog is App Info Intent in = new Intent().setAction(Settings.ACTION_APPLICATION_DETAILS_SETTINGS) Loading