From df994e4fe077dc643658dbd4c65845b0e086fc8a Mon Sep 17 00:00:00 2001 From: Marvin Borner Date: Fri, 31 Aug 2018 02:03:59 +0200 Subject: Added video button and began preview after image --- .../main/java/me/texx/Texx/MediaPreviewActivity.kt | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 app/src/main/java/me/texx/Texx/MediaPreviewActivity.kt (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 new file mode 100644 index 0000000..cdc5c71 --- /dev/null +++ b/app/src/main/java/me/texx/Texx/MediaPreviewActivity.kt @@ -0,0 +1,22 @@ +package me.texx.Texx + +import android.os.Bundle +import android.support.v7.app.AppCompatActivity +import android.view.Window +import android.view.WindowManager +import daio.io.dresscode.dressCodeName +import daio.io.dresscode.matchDressCode +import me.texx.Texx.util.ThemeUtil.getThemeName + +class MediaPreviewActivity : AppCompatActivity() { + + override fun onCreate(savedInstanceState: Bundle?) { + matchDressCode() + super.onCreate(savedInstanceState) + dressCodeName = getThemeName(this) + requestWindowFeature(Window.FEATURE_NO_TITLE) + window.setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN, + WindowManager.LayoutParams.FLAG_FULLSCREEN) + setContentView(R.layout.activity_camera) + } +} -- cgit v1.2.3