Skip to content

Commit

Permalink
fix(example): fix warning with ViewModelProvider
Browse files Browse the repository at this point in the history
  • Loading branch information
ThibaultBee committed Apr 8, 2024
1 parent 4865dbf commit cba1493
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ class MainActivity : AppCompatActivity() {

private lateinit var binding: ActivityMainBinding
private val viewModel: MainViewModel by lazy {
ViewModelProvider(this).get(MainViewModel::class.java)
ViewModelProvider(this)[MainViewModel::class.java]
}

override fun onCreate(savedInstanceState: Bundle?) {
Expand Down

0 comments on commit cba1493

Please sign in to comment.