π End-to-end encrypted cloud for everything.
Dart 2faandroidauthye2eeencryptionend-to-end-encryptionfluttergolanggoogle-photosgoogle-photos-alternativeiosopensourcephotosprivacyprivacy-toolstypescriptzero-knowledge
[mobile][photos] Harden review intent Parcelable handling
laurenspriem28ce82d1d26b
diff --git a/mobile/apps/photos/android/app/src/main/kotlin/io/ente/photos/MediaReviewActivity.kt b/mobile/apps/photos/android/app/src/main/kotlin/io/ente/photos/MediaReviewActivity.ktindex 1fa62ae95d..2063e7db93 100644--- a/mobile/apps/photos/android/app/src/main/kotlin/io/ente/photos/MediaReviewActivity.kt+++ b/mobile/apps/photos/android/app/src/main/kotlin/io/ente/photos/MediaReviewActivity.kt@@ -5,6 +5,7 @@ import android.content.Intentimport android.net.Uriimport android.os.Bundleimport android.webkit.MimeTypeMap+import androidx.core.content.IntentCompatimport java.util.Localeclass MediaReviewActivity : Activity() {@@ -77,8 +78,7 @@ class MediaReviewActivity : Activity() {}private val Intent.streamUri: Uri?- @Suppress("DEPRECATION")- get() = getParcelableExtra(Intent.EXTRA_STREAM)+ get() = IntentCompat.getParcelableExtra(this, Intent.EXTRA_STREAM, Uri::class.java)private val Intent.reviewUri: Uri?get() = data ?: streamUri ?: firstClipDataUri