fix crash when trying to add account to list from profile (#2972)
This commit is contained in:
parent
9e52f7acf1
commit
11cf420320
1 changed files with 6 additions and 0 deletions
|
@ -5,6 +5,7 @@ package com.keylesspalace.tusky.di
|
||||||
import androidx.lifecycle.ViewModel
|
import androidx.lifecycle.ViewModel
|
||||||
import androidx.lifecycle.ViewModelProvider
|
import androidx.lifecycle.ViewModelProvider
|
||||||
import com.keylesspalace.tusky.components.account.AccountViewModel
|
import com.keylesspalace.tusky.components.account.AccountViewModel
|
||||||
|
import com.keylesspalace.tusky.components.account.list.ListsForAccountViewModel
|
||||||
import com.keylesspalace.tusky.components.account.media.AccountMediaViewModel
|
import com.keylesspalace.tusky.components.account.media.AccountMediaViewModel
|
||||||
import com.keylesspalace.tusky.components.announcements.AnnouncementsViewModel
|
import com.keylesspalace.tusky.components.announcements.AnnouncementsViewModel
|
||||||
import com.keylesspalace.tusky.components.compose.ComposeViewModel
|
import com.keylesspalace.tusky.components.compose.ComposeViewModel
|
||||||
|
@ -132,5 +133,10 @@ abstract class ViewModelModule {
|
||||||
@ViewModelKey(FollowedTagsViewModel::class)
|
@ViewModelKey(FollowedTagsViewModel::class)
|
||||||
internal abstract fun followedTagsViewModel(viewModel: FollowedTagsViewModel): ViewModel
|
internal abstract fun followedTagsViewModel(viewModel: FollowedTagsViewModel): ViewModel
|
||||||
|
|
||||||
|
@Binds
|
||||||
|
@IntoMap
|
||||||
|
@ViewModelKey(ListsForAccountViewModel::class)
|
||||||
|
internal abstract fun listsForAccountViewModel(viewModel: ListsForAccountViewModel): ViewModel
|
||||||
|
|
||||||
// Add more ViewModels here
|
// Add more ViewModels here
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue