kopia lustrzana https://github.com/ryukoposting/Signal-Android
Fix story name display in removal dialog.
rodzic
ea6f6bf47d
commit
1d5a83668b
|
@ -97,7 +97,7 @@ class GroupStorySettingsFragment : DSLSettingsFragment(menuId = R.menu.story_gro
|
|||
onClick = {
|
||||
StoryDialogs.removeGroupStory(
|
||||
requireContext(),
|
||||
state.name
|
||||
viewModel.titleSnapshot
|
||||
) {
|
||||
viewModel.doNotDisplayAsStory()
|
||||
}
|
||||
|
|
|
@ -19,6 +19,7 @@ class GroupStorySettingsViewModel(private val groupId: GroupId) : ViewModel() {
|
|||
private val store = Store(GroupStorySettingsState())
|
||||
|
||||
val state: LiveData<GroupStorySettingsState> = store.stateLiveData
|
||||
val titleSnapshot: String get() = store.state.name
|
||||
|
||||
init {
|
||||
val group = LiveGroup(groupId)
|
||||
|
|
Ładowanie…
Reference in New Issue