diff options
author | Marvin Borner | 2018-08-31 22:44:44 +0200 |
---|---|---|
committer | Marvin Borner | 2018-08-31 22:44:44 +0200 |
commit | 770081bb0090e8867b1b6e153f8cf65cb700be86 (patch) | |
tree | 8d13eddd3c1498f090ac086d86359a725d273328 /app/src/main/java/me/texx/Texx/MediaPreviewActivity.kt | |
parent | 0387275f1111975a3643d4c44c36d105f476fe6e (diff) |
Finished saving and displaying of image
Diffstat (limited to 'app/src/main/java/me/texx/Texx/MediaPreviewActivity.kt')
-rw-r--r-- | app/src/main/java/me/texx/Texx/MediaPreviewActivity.kt | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/app/src/main/java/me/texx/Texx/MediaPreviewActivity.kt b/app/src/main/java/me/texx/Texx/MediaPreviewActivity.kt index 6a83362..3e6f25b 100644 --- a/app/src/main/java/me/texx/Texx/MediaPreviewActivity.kt +++ b/app/src/main/java/me/texx/Texx/MediaPreviewActivity.kt @@ -1,5 +1,6 @@ package me.texx.Texx +import android.net.Uri import android.os.Bundle import android.support.v7.app.AppCompatActivity import android.view.Window @@ -8,7 +9,6 @@ import android.widget.ImageView import daio.io.dresscode.dressCodeName import daio.io.dresscode.matchDressCode import me.texx.Texx.util.ThemeUtil.getThemeName -import org.jetbrains.anko.longToast class MediaPreviewActivity : AppCompatActivity() { @@ -21,8 +21,8 @@ class MediaPreviewActivity : AppCompatActivity() { WindowManager.LayoutParams.FLAG_FULLSCREEN) setContentView(R.layout.activity_media_preview) - val file = intent.getStringExtra("file") + val filepath = intent.getStringExtra("filepath") val imageView = findViewById<ImageView>(R.id.imagePreview) - longToast(file) + imageView.setImageURI(Uri.parse(filepath)) } } |