Skip to content

Commit 4699fa9

Browse files
authored
make view model instance as private in MainActivity (#1621)
1 parent a83c873 commit 4699fa9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/src/main/kotlin/com/google/samples/apps/nowinandroid/MainActivity.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ class MainActivity : ComponentActivity() {
7575
@Inject
7676
lateinit var userNewsResourceRepository: UserNewsResourceRepository
7777

78-
val viewModel: MainActivityViewModel by viewModels()
78+
private val viewModel: MainActivityViewModel by viewModels()
7979

8080
override fun onCreate(savedInstanceState: Bundle?) {
8181
val splashScreen = installSplashScreen()

0 commit comments

Comments
 (0)