diff --git a/app/src/main/java/net/sourceforge/opencamera/MainActivity.java b/app/src/main/java/net/sourceforge/opencamera/MainActivity.java index cf2f527a7a874c8ea740b218fdd6dccf350151ea..9257449720672a127624e6353af0fbc333935658 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) {