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

Commit 6cea3998 authored by Mohammed Althaf T's avatar Mohammed Althaf T 😊
Browse files

Camera: Enable support for editing photo after taken

Change-Id: Ib251522ebd6cf1696b8461cbfd5682a5ed11aa75
parent 650af741
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -4724,6 +4724,7 @@ public class MainActivity extends AppCompatActivity implements PreferenceFragmen
            if( MyDebug.LOG )
                Log.d(TAG, "launch uri:" + uri);
            final String REVIEW_ACTION = "com.android.camera.action.REVIEW";
            final String KEY_FROM_SNAPCAM = "from-snapcam";
            boolean done = false;
            if( !is_raw ) {
                // REVIEW_ACTION means we can view video files without autoplaying.
@@ -4735,6 +4736,7 @@ public class MainActivity extends AppCompatActivity implements PreferenceFragmen
                    Log.d(TAG, "try REVIEW_ACTION");
                try {
                    Intent intent = new Intent(REVIEW_ACTION, uri);
                    intent.putExtra(KEY_FROM_SNAPCAM, true);
                    this.startActivity(intent);
                    done = true;
                }
@@ -4747,6 +4749,7 @@ public class MainActivity extends AppCompatActivity implements PreferenceFragmen
                    Log.d(TAG, "try ACTION_VIEW");
                try {
                    Intent intent = new Intent(Intent.ACTION_VIEW, uri);
                    intent.putExtra(KEY_FROM_SNAPCAM, true);
                    this.startActivity(intent);
                }
                catch(ActivityNotFoundException e) {