• R/O
  • HTTP
  • SSH
  • HTTPS

Commit

Tags
Aucun tag

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

frameworks/base


Commit MetaInfo

Révision0416784c2e41d8ac316d4b1f2473cfbd9d0a228e (tree)
l'heure2019-12-19 00:41:33
AuteurAlison Cichowlas <asc@goog...>
CommiterAndroid (Google) Code Review

Message de Log

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

Change Summary

Modification

--- a/core/java/com/android/internal/app/ChooserActivity.java
+++ b/core/java/com/android/internal/app/ChooserActivity.java
@@ -815,12 +815,19 @@ public class ChooserActivity extends ResolverActivity {
815815 return new PackageMonitor() {
816816 @Override
817817 public void onSomePackagesChanged() {
818- mAdapter.handlePackagesChanged();
819- bindProfileView();
818+ handlePackagesChanged();
820819 }
821820 };
822821 }
823822
823+ /**
824+ * Update UI to reflect changes in data.
825+ */
826+ public void handlePackagesChanged() {
827+ mAdapter.handlePackagesChanged();
828+ bindProfileView();
829+ }
830+
824831 private void onCopyButtonClicked(View v) {
825832 Intent targetIntent = getTargetIntent();
826833 if (targetIntent == null) {
--- a/core/java/com/android/internal/app/ResolverTargetActionsDialogFragment.java
+++ b/core/java/com/android/internal/app/ResolverTargetActionsDialogFragment.java
@@ -84,7 +84,7 @@ public class ResolverTargetActionsDialogFragment extends DialogFragment
8484 }
8585
8686 // Force the chooser to requery and resort things
87- getActivity().recreate();
87+ ((ChooserActivity) getActivity()).handlePackagesChanged();
8888 break;
8989 case APP_INFO_INDEX:
9090 Intent in = new Intent().setAction(Settings.ACTION_APPLICATION_DETAILS_SETTINGS)