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

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

Camera: Enable support for editing photo after taken

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