frameworks/base
Révision | 0416784c2e41d8ac316d4b1f2473cfbd9d0a228e (tree) |
---|---|
l'heure | 2019-12-19 00:41:33 |
Auteur | Alison Cichowlas <asc@goog...> |
Commiter | Android (Google) Code Review |
Merge "Do not restart activity when pinned set changes - just re-sort." into qt-qpr1-dev
@@ -815,12 +815,19 @@ public class ChooserActivity extends ResolverActivity { | ||
815 | 815 | return new PackageMonitor() { |
816 | 816 | @Override |
817 | 817 | public void onSomePackagesChanged() { |
818 | - mAdapter.handlePackagesChanged(); | |
819 | - bindProfileView(); | |
818 | + handlePackagesChanged(); | |
820 | 819 | } |
821 | 820 | }; |
822 | 821 | } |
823 | 822 | |
823 | + /** | |
824 | + * Update UI to reflect changes in data. | |
825 | + */ | |
826 | + public void handlePackagesChanged() { | |
827 | + mAdapter.handlePackagesChanged(); | |
828 | + bindProfileView(); | |
829 | + } | |
830 | + | |
824 | 831 | private void onCopyButtonClicked(View v) { |
825 | 832 | Intent targetIntent = getTargetIntent(); |
826 | 833 | if (targetIntent == null) { |
@@ -84,7 +84,7 @@ public class ResolverTargetActionsDialogFragment extends DialogFragment | ||
84 | 84 | } |
85 | 85 | |
86 | 86 | // Force the chooser to requery and resort things |
87 | - getActivity().recreate(); | |
87 | + ((ChooserActivity) getActivity()).handlePackagesChanged(); | |
88 | 88 | break; |
89 | 89 | case APP_INFO_INDEX: |
90 | 90 | Intent in = new Intent().setAction(Settings.ACTION_APPLICATION_DETAILS_SETTINGS) |