From cba149316d23b5fcfe0cba5f3930919ee75e372c Mon Sep 17 00:00:00 2001 From: ThibaultBee <37510686+ThibaultBee@users.noreply.github.com> Date: Mon, 8 Apr 2024 19:12:52 +0200 Subject: [PATCH] fix(example): fix warning with ViewModelProvider --- .../io/github/thibaultbee/srtdroid/examples/MainActivity.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/src/main/java/io/github/thibaultbee/srtdroid/examples/MainActivity.kt b/examples/src/main/java/io/github/thibaultbee/srtdroid/examples/MainActivity.kt index b3877ead..6e22b28d 100644 --- a/examples/src/main/java/io/github/thibaultbee/srtdroid/examples/MainActivity.kt +++ b/examples/src/main/java/io/github/thibaultbee/srtdroid/examples/MainActivity.kt @@ -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?) {