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

Commit 38b4e642 authored by Nishith  Khanna's avatar Nishith Khanna
Browse files

SystemUI: change intent for viewing screenshots

With the switch from Gallery2 to Glimpse we require this change so that we can see options like edit,delete and favorites when viewing screenshot
parent 6d7766e8
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -23,6 +23,7 @@ import android.content.ContentProvider
import android.content.Context
import android.content.Intent
import android.net.Uri
import android.provider.MediaStore
import com.android.systemui.res.R

object ActionIntentCreator {
@@ -80,7 +81,7 @@ object ActionIntentCreator {
     *   available.
     */
    fun createView(rawUri: Uri, context: Context): Intent {
        return createEditOrView(rawUri, context, Intent(Intent.ACTION_VIEW))
        return createEditOrView(rawUri, context, Intent(MediaStore.ACTION_REVIEW))
    }

    private fun createEditOrView(rawUri: Uri, context: Context, intent: Intent): Intent {