mirror of
https://github.com/signalapp/Signal-Android.git
synced 2025-12-25 05:27:42 +00:00
Rename private story as custom story.
This commit is contained in:
committed by
Cody Henthorne
parent
ba2d84005d
commit
39c1939470
@@ -73,10 +73,10 @@ class StoryDialogLauncherFragment : DSLSettingsFragment(titleId = R.string.prefe
|
||||
)
|
||||
|
||||
clickPref(
|
||||
title = DSLSettingsText.from(R.string.preferences__internal_delete_private_story),
|
||||
title = DSLSettingsText.from(R.string.preferences__internal_delete_custom_story),
|
||||
onClick = {
|
||||
StoryDialogs.deleteDistributionList(requireContext(), "Family") {
|
||||
Toast.makeText(requireContext(), R.string.preferences__internal_delete_private_story, Toast.LENGTH_SHORT).show()
|
||||
Toast.makeText(requireContext(), R.string.preferences__internal_delete_custom_story, Toast.LENGTH_SHORT).show()
|
||||
}
|
||||
}
|
||||
)
|
||||
|
||||
@@ -135,7 +135,7 @@ object ContactSearchItems {
|
||||
number.text = when {
|
||||
model.story.recipient.isGroup -> context.resources.getQuantityString(R.plurals.ContactSearchItems__group_story_d_viewers, count, count)
|
||||
model.story.recipient.isMyStory -> context.resources.getQuantityString(R.plurals.ContactSearchItems__my_story_s_dot_d_viewers, count, presentPrivacyMode(model.story.privacyMode), count)
|
||||
else -> context.resources.getQuantityString(R.plurals.ContactSearchItems__private_story_d_viewers, count, count)
|
||||
else -> context.resources.getQuantityString(R.plurals.ContactSearchItems__custom_story_d_viewers, count, count)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -149,7 +149,7 @@ class ContactSearchMediator(
|
||||
override fun onDeletePrivateStory(story: ContactSearchData.Story, isSelected: Boolean) {
|
||||
MaterialAlertDialogBuilder(fragment.requireContext())
|
||||
.setTitle(R.string.ContactSearchMediator__delete_story)
|
||||
.setMessage(fragment.getString(R.string.ContactSearchMediator__delete_the_private, story.recipient.getDisplayName(fragment.requireContext())))
|
||||
.setMessage(fragment.getString(R.string.ContactSearchMediator__delete_the_custom, story.recipient.getDisplayName(fragment.requireContext())))
|
||||
.setPositiveButton(SpanUtil.color(ContextCompat.getColor(fragment.requireContext(), R.color.signal_colorError), fragment.getString(R.string.ContactSearchMediator__delete))) { _, _ -> viewModel.deletePrivateStory(story) }
|
||||
.setNegativeButton(android.R.string.cancel) { _, _ -> }
|
||||
.show()
|
||||
|
||||
@@ -31,7 +31,7 @@ class ChooseStoryTypeBottomSheet : DSLSettingsBottomSheetFragment(
|
||||
customPref(
|
||||
LargeIconClickPreference.Model(
|
||||
title = DSLSettingsText.from(
|
||||
stringId = R.string.ChooseStoryTypeBottomSheet__new_private_story
|
||||
stringId = R.string.ChooseStoryTypeBottomSheet__new_custom_story
|
||||
),
|
||||
summary = DSLSettingsText.from(
|
||||
stringId = R.string.ChooseStoryTypeBottomSheet__visible_only_to
|
||||
|
||||
@@ -29,7 +29,7 @@ object StoryDialogs {
|
||||
onDelete: () -> Unit
|
||||
) {
|
||||
MaterialAlertDialogBuilder(context)
|
||||
.setTitle(R.string.StoryDialogs__delete_private_story)
|
||||
.setTitle(R.string.StoryDialogs__delete_custom_story)
|
||||
.setMessage(context.getString(R.string.StoryDialogs__s_and_updates_shared, distributionListName))
|
||||
.setPositiveButton(R.string.StoryDialogs__delete) { _, _ -> onDelete() }
|
||||
.setNegativeButton(android.R.string.cancel) { _, _ -> }
|
||||
|
||||
@@ -97,7 +97,7 @@ class PrivateStorySettingsFragment : DSLSettingsFragment(
|
||||
|
||||
dividerPref()
|
||||
clickPref(
|
||||
title = DSLSettingsText.from(R.string.PrivateStorySettingsFragment__delete_private_story, DSLSettingsText.ColorModifier(ContextCompat.getColor(requireContext(), R.color.signal_alert_primary))),
|
||||
title = DSLSettingsText.from(R.string.PrivateStorySettingsFragment__delete_custom_story, DSLSettingsText.ColorModifier(ContextCompat.getColor(requireContext(), R.color.signal_alert_primary))),
|
||||
onClick = {
|
||||
val privateStoryName = viewModel.state.value?.privateStory?.name
|
||||
handleDeletePrivateStory(privateStoryName)
|
||||
|
||||
Reference in New Issue
Block a user