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

Commit fab36399 authored by Owen Lin's avatar Owen Lin Committed by Android (Google) Code Review
Browse files

Merge "Set type as well while launching editor." into gb-ub-photos-arches

parents 9778705a b6692653
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -578,8 +578,9 @@ public class PhotoPage extends ActivityState implements
        }

        Intent intent = new Intent(ACTION_NEXTGEN_EDIT);
        intent.setData(mActivity.getDataManager().getContentUri(current.getPath())).setFlags(
                Intent.FLAG_GRANT_READ_URI_PERMISSION);

        intent.setDataAndType(current.getContentUri(), current.getMimeType())
                .setFlags(Intent.FLAG_GRANT_READ_URI_PERMISSION);
        if (mActivity.getPackageManager()
                .queryIntentActivities(intent, PackageManager.MATCH_DEFAULT_ONLY).size() == 0) {
            intent.setAction(Intent.ACTION_EDIT);