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

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

Camera: Enable support for editing photo after taken

Change-Id: Ib251522ebd6cf1696b8461cbfd5682a5ed11aa75
parent 44db8e21
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -5068,6 +5068,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.
@@ -5079,6 +5080,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;
                }
@@ -5091,6 +5093,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) {