mirror of
https://github.com/signalapp/Signal-Android.git
synced 2026-04-20 08:39:22 +01:00
Add in-call info sheet for call links.
This commit is contained in:
committed by
Cody Henthorne
parent
369ca189d3
commit
886c149c3f
@@ -4,16 +4,9 @@ import android.os.Bundle
|
||||
import android.view.LayoutInflater
|
||||
import android.view.View
|
||||
import android.view.ViewGroup
|
||||
import androidx.compose.foundation.background
|
||||
import androidx.compose.foundation.layout.Box
|
||||
import androidx.compose.foundation.layout.padding
|
||||
import androidx.compose.foundation.layout.size
|
||||
import androidx.compose.foundation.shape.RoundedCornerShape
|
||||
import androidx.compose.material3.MaterialTheme
|
||||
import androidx.compose.material3.Surface
|
||||
import androidx.compose.runtime.Composable
|
||||
import androidx.compose.ui.Modifier
|
||||
import androidx.compose.ui.draw.clip
|
||||
import androidx.compose.ui.platform.ComposeView
|
||||
import androidx.compose.ui.platform.LocalContext
|
||||
import androidx.compose.ui.platform.ViewCompositionStrategy
|
||||
@@ -41,29 +34,4 @@ abstract class ComposeBottomSheetDialogFragment : FixedRoundedCornerBottomSheetD
|
||||
|
||||
@Composable
|
||||
abstract fun SheetContent()
|
||||
|
||||
/**
|
||||
* BottomSheet Handle, according to our design specs.
|
||||
* This can be placed in a column with the other page content like so:
|
||||
*
|
||||
* ```
|
||||
* Column(modifier = Modifier
|
||||
* .fillMaxWidth()
|
||||
* .wrapContentSize(Alignment.Center)
|
||||
* ) {
|
||||
* Handle()
|
||||
* Text("Hello!")
|
||||
* }
|
||||
* ```
|
||||
*/
|
||||
@Composable
|
||||
protected fun Handle(modifier: Modifier = Modifier) {
|
||||
Box(
|
||||
modifier = modifier
|
||||
.size(width = 48.dp, height = 22.dp)
|
||||
.padding(vertical = 10.dp)
|
||||
.clip(RoundedCornerShape(1000.dp))
|
||||
.background(MaterialTheme.colorScheme.outline)
|
||||
)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user