mirror of
https://github.com/signalapp/Signal-Android.git
synced 2025-12-23 20:48:43 +00:00
Remove "lower hand" confirmation dialog.
This commit is contained in:
committed by
Greyson Parrelli
parent
689eacd618
commit
a2e0468cd9
@@ -5,7 +5,6 @@
|
|||||||
|
|
||||||
package org.thoughtcrime.securesms.components.webrtc.controls
|
package org.thoughtcrime.securesms.components.webrtc.controls
|
||||||
|
|
||||||
import android.content.Context
|
|
||||||
import androidx.compose.animation.AnimatedVisibility
|
import androidx.compose.animation.AnimatedVisibility
|
||||||
import androidx.compose.animation.animateContentSize
|
import androidx.compose.animation.animateContentSize
|
||||||
import androidx.compose.animation.expandIn
|
import androidx.compose.animation.expandIn
|
||||||
@@ -44,7 +43,6 @@ import androidx.compose.ui.res.vectorResource
|
|||||||
import androidx.compose.ui.semantics.Role
|
import androidx.compose.ui.semantics.Role
|
||||||
import androidx.compose.ui.tooling.preview.Preview
|
import androidx.compose.ui.tooling.preview.Preview
|
||||||
import androidx.compose.ui.unit.dp
|
import androidx.compose.ui.unit.dp
|
||||||
import com.google.android.material.dialog.MaterialAlertDialogBuilder
|
|
||||||
import io.reactivex.rxjava3.core.BackpressureStrategy
|
import io.reactivex.rxjava3.core.BackpressureStrategy
|
||||||
import kotlinx.coroutines.delay
|
import kotlinx.coroutines.delay
|
||||||
import org.signal.core.ui.theme.SignalTheme
|
import org.signal.core.ui.theme.SignalTheme
|
||||||
@@ -160,7 +158,7 @@ private fun RaiseHand(
|
|||||||
val context = LocalContext.current
|
val context = LocalContext.current
|
||||||
TextButton(
|
TextButton(
|
||||||
onClick = {
|
onClick = {
|
||||||
showLowerHandDialog(context)
|
ApplicationDependencies.getSignalCallManager().raiseHand(false)
|
||||||
},
|
},
|
||||||
modifier = Modifier.wrapContentWidth(Alignment.End)
|
modifier = Modifier.wrapContentWidth(Alignment.End)
|
||||||
) {
|
) {
|
||||||
@@ -182,16 +180,6 @@ private fun RaiseHand(
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private fun showLowerHandDialog(context: Context) {
|
|
||||||
MaterialAlertDialogBuilder(context)
|
|
||||||
.setTitle(R.string.CallOverflowPopupWindow__lower_your_hand)
|
|
||||||
.setPositiveButton(
|
|
||||||
R.string.CallOverflowPopupWindow__lower_hand
|
|
||||||
) { _, _ -> ApplicationDependencies.getSignalCallManager().raiseHand(false) }
|
|
||||||
.setNegativeButton(R.string.CallOverflowPopupWindow__cancel, null)
|
|
||||||
.show()
|
|
||||||
}
|
|
||||||
|
|
||||||
@Composable
|
@Composable
|
||||||
private fun getSnackbarText(state: RaiseHandState): String {
|
private fun getSnackbarText(state: RaiseHandState): String {
|
||||||
if (state.isEmpty) {
|
if (state.isEmpty) {
|
||||||
|
|||||||
Reference in New Issue
Block a user