From 770081bb0090e8867b1b6e153f8cf65cb700be86 Mon Sep 17 00:00:00 2001 From: Marvin Borner Date: Fri, 31 Aug 2018 22:44:44 +0200 Subject: Finished saving and displaying of image --- app/src/main/java/me/texx/Texx/MediaPreviewActivity.kt | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'app/src/main/java/me/texx/Texx/MediaPreviewActivity.kt') 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(R.id.imagePreview) - longToast(file) + imageView.setImageURI(Uri.parse(filepath)) } } -- cgit v1.2.3