pull/32/head
parent
d134c7e7c3
commit
68aeaa5ecb
@ -1,8 +1,20 @@ |
||||
package io.legado.app.ui.read |
||||
|
||||
import android.app.Application |
||||
import android.content.Intent |
||||
import androidx.lifecycle.MutableLiveData |
||||
import io.legado.app.base.BaseViewModel |
||||
import io.legado.app.data.entities.Book |
||||
|
||||
class ReadViewModel(application: Application) : BaseViewModel(application) { |
||||
|
||||
val bookData = MutableLiveData<Book>() |
||||
|
||||
fun initData(intent: Intent) { |
||||
val bookUrl = intent.getStringExtra("bookUrl") |
||||
if (!bookUrl.isNullOrEmpty()) { |
||||
|
||||
} |
||||
} |
||||
|
||||
} |
Loading…
Reference in new issue