Fix crash on CategoryFormActivity
This commit is contained in:
parent
8d3a9a89fc
commit
5b2dd61556
1 changed files with 2 additions and 1 deletions
|
@ -7,6 +7,7 @@ import android.view.MenuItem
|
|||
import android.view.View
|
||||
import android.widget.ArrayAdapter
|
||||
import android.widget.Toast
|
||||
import androidx.activity.viewModels
|
||||
import androidx.appcompat.app.AppCompatActivity
|
||||
import androidx.core.app.NavUtils
|
||||
import androidx.core.app.TaskStackBuilder
|
||||
|
@ -21,7 +22,7 @@ import com.wbrawner.budget.ui.transactions.toLong
|
|||
import kotlinx.android.synthetic.main.activity_add_edit_category.*
|
||||
|
||||
class CategoryFormActivity : AppCompatActivity() {
|
||||
lateinit var viewModel: CategoryFormViewModel
|
||||
val viewModel: CategoryFormViewModel by viewModels()
|
||||
var id: Long? = null
|
||||
var menu: Menu? = null
|
||||
|
||||
|
|
Loading…
Reference in a new issue