Aperture: Make transitions seamless

Signed-off-by: Luca Stefani <luca.stefani.ge1@gmail.com>
Change-Id: I76123c77ada084f50e60f3f2b7e8f91041fdf2a1
diff --git a/app/src/main/java/org/lineageos/aperture/MainActivity.kt b/app/src/main/java/org/lineageos/aperture/MainActivity.kt
index f63f0bd..f2ba09e 100644
--- a/app/src/main/java/org/lineageos/aperture/MainActivity.kt
+++ b/app/src/main/java/org/lineageos/aperture/MainActivity.kt
@@ -10,6 +10,7 @@
 import android.os.Handler
 import android.os.Looper
 import android.os.Message
+import android.provider.MediaStore
 import android.util.Log
 import android.view.MotionEvent
 import android.view.View
@@ -215,7 +216,7 @@
                     colorFade.duration = 500
                     colorFade.start()
                     val intent = Intent().apply {
-                        action = Intent.ACTION_VIEW
+                        action = MediaStore.ACTION_REVIEW
                         data = output.savedUri
                     }
                     galleryButton.setOnClickListener { startActivity(intent) }
@@ -247,7 +248,7 @@
                 override fun onVideoSaved(output: OutputFileResults) {
                     stopRecordingTimer()
                     val intent = Intent().apply {
-                        action = Intent.ACTION_VIEW
+                        action = MediaStore.ACTION_REVIEW
                         data = output.savedUri
                     }
                     galleryButton.setOnClickListener { startActivity(intent) }