From bf9803681ab9209551196e36f88234798e589581 Mon Sep 17 00:00:00 2001 From: kunfei Date: Thu, 29 Aug 2019 16:59:17 +0800 Subject: [PATCH] up --- app/src/main/AndroidManifest.xml | 1 + .../io/legado/app/ui/audio/AudioPlayActivity.kt | 17 +++++++++++++++++ .../legado/app/ui/audio/AudioPlayViewModel.kt | 9 +++++++++ app/src/main/res/layout/activity_audio_play.xml | 7 +++++++ 4 files changed, 34 insertions(+) create mode 100644 app/src/main/java/io/legado/app/ui/audio/AudioPlayActivity.kt create mode 100644 app/src/main/java/io/legado/app/ui/audio/AudioPlayViewModel.kt create mode 100644 app/src/main/res/layout/activity_audio_play.xml diff --git a/app/src/main/AndroidManifest.xml b/app/src/main/AndroidManifest.xml index 0984f2a72..bca5f59fb 100644 --- a/app/src/main/AndroidManifest.xml +++ b/app/src/main/AndroidManifest.xml @@ -60,6 +60,7 @@ + diff --git a/app/src/main/java/io/legado/app/ui/audio/AudioPlayActivity.kt b/app/src/main/java/io/legado/app/ui/audio/AudioPlayActivity.kt new file mode 100644 index 000000000..23e2dd03b --- /dev/null +++ b/app/src/main/java/io/legado/app/ui/audio/AudioPlayActivity.kt @@ -0,0 +1,17 @@ +package io.legado.app.ui.audio + +import android.os.Bundle +import io.legado.app.R +import io.legado.app.base.VMBaseActivity +import io.legado.app.utils.getViewModel + +class AudioPlayActivity : VMBaseActivity(R.layout.activity_audio_play) { + override val viewModel: AudioPlayViewModel + get() = getViewModel(AudioPlayViewModel::class.java) + + override fun onActivityCreated(savedInstanceState: Bundle?) { + + } + + +} \ No newline at end of file diff --git a/app/src/main/java/io/legado/app/ui/audio/AudioPlayViewModel.kt b/app/src/main/java/io/legado/app/ui/audio/AudioPlayViewModel.kt new file mode 100644 index 000000000..aebf4da98 --- /dev/null +++ b/app/src/main/java/io/legado/app/ui/audio/AudioPlayViewModel.kt @@ -0,0 +1,9 @@ +package io.legado.app.ui.audio + +import android.app.Application +import io.legado.app.base.BaseViewModel + +class AudioPlayViewModel(application: Application) : BaseViewModel(application) { + + +} \ No newline at end of file diff --git a/app/src/main/res/layout/activity_audio_play.xml b/app/src/main/res/layout/activity_audio_play.xml new file mode 100644 index 000000000..d829e291c --- /dev/null +++ b/app/src/main/res/layout/activity_audio_play.xml @@ -0,0 +1,7 @@ + + + + \ No newline at end of file