From 20f8e816f5a213bf230b7cc86bca80c3e238b73f Mon Sep 17 00:00:00 2001 From: althafvly Date: Wed, 26 Oct 2022 10:42:26 +0530 Subject: [PATCH] Camera: Enable support for editing photo after taken Change-Id: Ib251522ebd6cf1696b8461cbfd5682a5ed11aa75 --- app/src/main/java/net/sourceforge/opencamera/MainActivity.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/app/src/main/java/net/sourceforge/opencamera/MainActivity.java b/app/src/main/java/net/sourceforge/opencamera/MainActivity.java index cf2f527a7..925744972 100644 --- a/app/src/main/java/net/sourceforge/opencamera/MainActivity.java +++ b/app/src/main/java/net/sourceforge/opencamera/MainActivity.java @@ -4206,6 +4206,7 @@ public class MainActivity extends AppCompatActivity { 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. @@ -4217,6 +4218,7 @@ public class MainActivity extends AppCompatActivity { 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; } @@ -4229,6 +4231,7 @@ public class MainActivity extends AppCompatActivity { 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) { -- GitLab