diff options
author | Marvin Borner | 2018-08-31 16:16:06 +0200 |
---|---|---|
committer | Marvin Borner | 2018-08-31 16:16:06 +0200 |
commit | 0387275f1111975a3643d4c44c36d105f476fe6e (patch) | |
tree | bb26572727010989dd50de30e673c3d12ceb0327 /app/src/main/java/me/texx/Texx/MediaPreviewActivity.kt | |
parent | df994e4fe077dc643658dbd4c65845b0e086fc8a (diff) |
Began saving of file
Diffstat (limited to 'app/src/main/java/me/texx/Texx/MediaPreviewActivity.kt')
-rw-r--r-- | app/src/main/java/me/texx/Texx/MediaPreviewActivity.kt | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/app/src/main/java/me/texx/Texx/MediaPreviewActivity.kt b/app/src/main/java/me/texx/Texx/MediaPreviewActivity.kt index cdc5c71..6a83362 100644 --- a/app/src/main/java/me/texx/Texx/MediaPreviewActivity.kt +++ b/app/src/main/java/me/texx/Texx/MediaPreviewActivity.kt @@ -4,9 +4,11 @@ import android.os.Bundle import android.support.v7.app.AppCompatActivity import android.view.Window import android.view.WindowManager +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() { @@ -17,6 +19,10 @@ class MediaPreviewActivity : AppCompatActivity() { requestWindowFeature(Window.FEATURE_NO_TITLE) window.setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN, WindowManager.LayoutParams.FLAG_FULLSCREEN) - setContentView(R.layout.activity_camera) + setContentView(R.layout.activity_media_preview) + + val file = intent.getStringExtra("file") + val imageView = findViewById<ImageView>(R.id.imagePreview) + longToast(file) } } |