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

Commit a0563cdd authored by Nishith  Khanna's avatar Nishith Khanna Committed by Mohammed Althaf T
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 50c7fd3a
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -27,6 +27,7 @@ import android.content.pm.PackageManager
import android.content.pm.PackageManager.NameNotFoundException
import android.net.Uri
import android.os.UserHandle
import android.provider.MediaStore
import com.android.systemui.dagger.SysUISingleton
import com.android.systemui.dagger.qualifiers.Application
import com.android.systemui.dagger.qualifiers.Background
@@ -108,7 +109,7 @@ constructor(
     *   available.
     */
    suspend fun createView(rawUri: Uri): Intent {
        return createEditOrView(rawUri, Intent(Intent.ACTION_VIEW))
        return createEditOrView(rawUri, Intent(MediaStore.ACTION_REVIEW))
    }

    suspend fun createEditOrView(rawUri: Uri, intent: Intent): Intent {