mirror of
https://github.com/signalapp/Signal-Android.git
synced 2025-12-24 13:08:46 +00:00
Add animations for add name fragment in call links.
This commit is contained in:
@@ -57,6 +57,7 @@ import org.thoughtcrime.securesms.recipients.Recipient
|
||||
import org.thoughtcrime.securesms.stories.tabs.ConversationListTab
|
||||
import org.thoughtcrime.securesms.stories.tabs.ConversationListTabsViewModel
|
||||
import org.thoughtcrime.securesms.util.CommunicationActions
|
||||
import org.thoughtcrime.securesms.util.FeatureFlags
|
||||
import org.thoughtcrime.securesms.util.ViewUtil
|
||||
import org.thoughtcrime.securesms.util.doAfterNextLayout
|
||||
import org.thoughtcrime.securesms.util.fragments.requireListener
|
||||
@@ -230,6 +231,13 @@ class CallLogFragment : Fragment(R.layout.call_log_fragment), CallLogAdapter.Cal
|
||||
val count = callLogActionMode.getCount()
|
||||
MaterialAlertDialogBuilder(requireContext())
|
||||
.setTitle(resources.getQuantityString(R.plurals.CallLogFragment__delete_d_calls, count, count))
|
||||
.setMessage(
|
||||
if (FeatureFlags.adHocCalling()) {
|
||||
getString(R.string.CallLogFragment__call_links_youve_created)
|
||||
} else {
|
||||
null
|
||||
}
|
||||
)
|
||||
.setPositiveButton(R.string.CallLogFragment__delete) { _, _ ->
|
||||
performDeletion(count, viewModel.stageSelectionDeletion())
|
||||
callLogActionMode.end()
|
||||
@@ -363,6 +371,13 @@ class CallLogFragment : Fragment(R.layout.call_log_fragment), CallLogAdapter.Cal
|
||||
override fun deleteCall(call: CallLogRow) {
|
||||
MaterialAlertDialogBuilder(requireContext())
|
||||
.setTitle(resources.getQuantityString(R.plurals.CallLogFragment__delete_d_calls, 1, 1))
|
||||
.setMessage(
|
||||
if (FeatureFlags.adHocCalling()) {
|
||||
getString(R.string.CallLogFragment__call_links_youve_created)
|
||||
} else {
|
||||
null
|
||||
}
|
||||
)
|
||||
.setPositiveButton(R.string.CallLogFragment__delete) { _, _ ->
|
||||
performDeletion(1, viewModel.stageCallDeletion(call))
|
||||
}
|
||||
|
||||
@@ -10,7 +10,11 @@
|
||||
android:label="call_link_details">
|
||||
<action
|
||||
android:id="@+id/action_callLinkDetailsFragment_to_editCallLinkNameDialogFragment"
|
||||
app:destination="@id/editCallLinkNameDialogFragment" />
|
||||
app:destination="@id/editCallLinkNameDialogFragment"
|
||||
app:enterAnim="@anim/fragment_open_enter"
|
||||
app:exitAnim="@anim/fragment_close_exit"
|
||||
app:popEnterAnim="@anim/fragment_close_enter"
|
||||
app:popExitAnim="@anim/fragment_close_exit" />
|
||||
|
||||
<argument
|
||||
android:name="room_id"
|
||||
|
||||
@@ -55,7 +55,11 @@
|
||||
android:label="create_call_link_bottom_sheet">
|
||||
<action
|
||||
android:id="@+id/action_createCallLinkBottomSheet_to_editCallLinkNameDialogFragment"
|
||||
app:destination="@id/editCallLinkNameDialogFragment" />
|
||||
app:destination="@id/editCallLinkNameDialogFragment"
|
||||
app:enterAnim="@anim/fragment_open_enter"
|
||||
app:exitAnim="@anim/fragment_close_exit"
|
||||
app:popEnterAnim="@anim/fragment_close_enter"
|
||||
app:popExitAnim="@anim/fragment_close_exit" />
|
||||
</dialog>
|
||||
|
||||
<dialog
|
||||
|
||||
@@ -6019,6 +6019,8 @@
|
||||
<string name="CallLogFragment__no_calls">No calls.</string>
|
||||
<!-- Shown during empty state -->
|
||||
<string name="CallLogFragment__get_started_by_calling_a_friend">Get started by calling a friend.</string>
|
||||
<!-- Displayed as a message in a dialog when deleting multiple items -->
|
||||
<string name="CallLogFragment__call_links_youve_created">Call links you\'ve created will no longer work for people who have them.</string>
|
||||
|
||||
<!-- New call activity -->
|
||||
<!-- Activity title in title bar -->
|
||||
|
||||
Reference in New Issue
Block a user