File tree Expand file tree Collapse file tree
src/main/java/org/schabi/newpipe/local Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -97,7 +97,7 @@ android {
9797ext {
9898 checkstyleVersion = ' 10.3.1'
9999
100- androidxLifecycleVersion = ' 2.3 .1'
100+ androidxLifecycleVersion = ' 2.5 .1'
101101 androidxRoomVersion = ' 2.4.2'
102102 androidxWorkVersion = ' 2.7.1'
103103
@@ -203,8 +203,8 @@ dependencies {
203203 implementation ' androidx.core:core-ktx:1.8.0'
204204 implementation ' androidx.documentfile:documentfile:1.0.1'
205205 implementation ' androidx.fragment:fragment-ktx:1.3.6'
206- implementation " androidx.lifecycle:lifecycle-livedata:${ androidxLifecycleVersion} "
207- implementation " androidx.lifecycle:lifecycle-viewmodel:${ androidxLifecycleVersion} "
206+ implementation " androidx.lifecycle:lifecycle-livedata-ktx :${ androidxLifecycleVersion} "
207+ implementation " androidx.lifecycle:lifecycle-viewmodel-ktx :${ androidxLifecycleVersion} "
208208 implementation ' androidx.localbroadcastmanager:localbroadcastmanager:1.1.0'
209209 implementation ' androidx.media:media:1.6.0'
210210 implementation ' androidx.preference:preference:1.2.0'
Original file line number Diff line number Diff line change @@ -146,7 +146,7 @@ class FeedViewModel(
146146 private val groupId : Long = FeedGroupEntity .GROUP_ALL_ID
147147 ) : ViewModelProvider.Factory {
148148 @Suppress(" UNCHECKED_CAST" )
149- override fun <T : ViewModel ? > create (modelClass : Class <T >): T {
149+ override fun <T : ViewModel > create (modelClass : Class <T >): T {
150150 return FeedViewModel (
151151 context.applicationContext,
152152 groupId,
Original file line number Diff line number Diff line change @@ -122,7 +122,7 @@ class FeedGroupDialogViewModel(
122122 private val initialShowOnlyUngrouped : Boolean = false
123123 ) : ViewModelProvider.Factory {
124124 @Suppress(" UNCHECKED_CAST" )
125- override fun <T : ViewModel ? > create (modelClass : Class <T >): T {
125+ override fun <T : ViewModel > create (modelClass : Class <T >): T {
126126 return FeedGroupDialogViewModel (
127127 context.applicationContext,
128128 groupId, initialQuery, initialShowOnlyUngrouped
You can’t perform that action at this time.
0 commit comments