From c4e4eaf1108ebe1ce8eb655a6919b3f3e0e22321 Mon Sep 17 00:00:00 2001 From: Nicholas Tinsley Date: Tue, 14 May 2024 16:47:39 -0400 Subject: [PATCH] Remove lower hand confirmation dialog. --- .../components/webrtc/CallOverflowPopupWindow.kt | 16 ++-------------- 1 file changed, 2 insertions(+), 14 deletions(-) diff --git a/app/src/main/java/org/thoughtcrime/securesms/components/webrtc/CallOverflowPopupWindow.kt b/app/src/main/java/org/thoughtcrime/securesms/components/webrtc/CallOverflowPopupWindow.kt index 0f5038bd1c..c5d3aad54f 100644 --- a/app/src/main/java/org/thoughtcrime/securesms/components/webrtc/CallOverflowPopupWindow.kt +++ b/app/src/main/java/org/thoughtcrime/securesms/components/webrtc/CallOverflowPopupWindow.kt @@ -16,7 +16,6 @@ import android.widget.TextView import androidx.constraintlayout.widget.ConstraintLayout import androidx.core.widget.PopupWindowCompat import androidx.fragment.app.FragmentActivity -import com.google.android.material.dialog.MaterialAlertDialogBuilder import org.thoughtcrime.securesms.R import org.thoughtcrime.securesms.dependencies.ApplicationDependencies import org.thoughtcrime.securesms.util.FeatureFlags @@ -44,19 +43,8 @@ class CallOverflowPopupWindow(private val activity: FragmentActivity, parentView val raiseHand = root.findViewById(R.id.raise_hand_layout_parent) raiseHand.visible = true raiseHand.setOnClickListener { - if (raisedHandDelegate.isSelfHandRaised()) { - MaterialAlertDialogBuilder(activity) - .setTitle(R.string.CallOverflowPopupWindow__lower_your_hand) - .setPositiveButton(R.string.CallOverflowPopupWindow__lower_hand) { _, _ -> - ApplicationDependencies.getSignalCallManager().raiseHand(false) - this@CallOverflowPopupWindow.dismiss() - } - .setNegativeButton(R.string.CallOverflowPopupWindow__cancel, null) - .show() - } else { - ApplicationDependencies.getSignalCallManager().raiseHand(true) - dismiss() - } + ApplicationDependencies.getSignalCallManager().raiseHand(!raisedHandDelegate.isSelfHandRaised()) + dismiss() } } }