Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 2d344246 authored by Alison Cichowlas's avatar Alison Cichowlas
Browse files

Do not restart activity when pinned set changes - just re-sort.

Bug: 145703939
Test: Share dialog via screenshot, long press for pin, observe behavior.
Change-Id: I6e9e03b77e1486093097ea1488fa589e3c7bd482
Merged-In: I6e9e03b77e1486093097ea1488fa589e3c7bd482
parent ee9c25e7
Loading
Loading
Loading
Loading
+9 −2
Original line number Diff line number Diff line
@@ -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) {
+1 −1
Original line number Diff line number Diff line
@@ -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)