Skip to content

Commit

Permalink
ViewModelProvider.Factory: ignore cast warning.
Browse files Browse the repository at this point in the history
  • Loading branch information
UweTrottmann committed Dec 9, 2021
1 parent cdcd124 commit 03c7b2e
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,7 @@ class DiscoverFilterViewModelFactory(
private val application: Application,
private val type: Type
) : ViewModelProvider.Factory {
@Suppress("UNCHECKED_CAST")
override fun <T : ViewModel> create(modelClass: Class<T>): T {
return DiscoverFilterViewModel(application, type) as T
}
Expand Down

0 comments on commit 03c7b2e

Please sign in to comment.