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

Commit fbf68586 authored by Steve McKay's avatar Steve McKay
Browse files

Pass doc uri in Intent data.

As opposed to an extra.
Use of ACTION_VIEW was atypical. "Data" is the natural home for a Uri.

Bug: 62293172
Test: Treehugger
Change-Id: I8e2b9cd36292591dbc88d2a6e1137b2243c96197
parent 02d6c893
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -676,9 +676,9 @@ public class ActionHandler<T extends Activity & Addons> extends AbstractActionHa

    @Override
    public void showInspector(DocumentInfo doc) {
        Metrics.logUserAction(mActivity, Metrics.USER_ACTION_INSPECTOR);
        Intent intent = new Intent(mActivity, DocumentInspectorActivity.class);
        intent.putExtra(Intent.ACTION_VIEW, doc.derivedUri);
        Metrics.logUserAction(mActivity.getBaseContext(), Metrics.USER_ACTION_INSPECTOR);
        intent.setData(doc.derivedUri);
        mActivity.startActivity(intent);
    }