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 = {
|
onClick = {
|
||||||
StoryDialogs.removeGroupStory(
|
StoryDialogs.removeGroupStory(
|
||||||
requireContext(),
|
requireContext(),
|
||||||
state.name
|
viewModel.titleSnapshot
|
||||||
) {
|
) {
|
||||||
viewModel.doNotDisplayAsStory()
|
viewModel.doNotDisplayAsStory()
|
||||||
}
|
}
|
||||||
|
|
|
@ -19,6 +19,7 @@ class GroupStorySettingsViewModel(private val groupId: GroupId) : ViewModel() {
|
||||||
private val store = Store(GroupStorySettingsState())
|
private val store = Store(GroupStorySettingsState())
|
||||||
|
|
||||||
val state: LiveData<GroupStorySettingsState> = store.stateLiveData
|
val state: LiveData<GroupStorySettingsState> = store.stateLiveData
|
||||||
|
val titleSnapshot: String get() = store.state.name
|
||||||
|
|
||||||
init {
|
init {
|
||||||
val group = LiveGroup(groupId)
|
val group = LiveGroup(groupId)
|
||||||
|
|
Ładowanie…
Reference in New Issue