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

Commit 003f902a authored by Abhishek Aggarwal's avatar Abhishek Aggarwal
Browse files

Revert "base: ChooserActivity: Don't show image edit button on multiple targets"

This reverts commit ad25de41.
parent 5f006d52
Loading
Loading
Loading
Loading
+2 −5
Original line number Diff line number Diff line
@@ -1397,16 +1397,13 @@ public class ChooserActivity extends ResolverActivity implements

        final ViewGroup actionRow =
                (ViewGroup) contentPreviewLayout.findViewById(R.id.chooser_action_row);
        String action = targetIntent.getAction();

        //TODO: addActionButton(actionRow, createCopyButton());
        addActionButton(actionRow, createNearbyButton(targetIntent));
        if (!Intent.ACTION_SEND_MULTIPLE.equals(action)) {
        addActionButton(actionRow, createEditButton(targetIntent));
        }

        mPreviewCoord = new ContentPreviewCoordinator(contentPreviewLayout, false);

        String action = targetIntent.getAction();
        if (Intent.ACTION_SEND.equals(action)) {
            Uri uri = targetIntent.getParcelableExtra(Intent.EXTRA_STREAM);
            if (!validForContentPreview(uri)) {