mirror of
https://github.com/signalapp/Signal-Android.git
synced 2026-04-22 18:00:02 +01:00
Sticker management v2 - Implement remaining functionality.
- Fix bottom action bar shadow clipping during visibility animations. - Show snackbar after installing/uninstalling sticker packs. - Navigate to sticker preview on row click. - Add top app bar menu to enable multi-select mode. - Start StickerManagementActivityV2 instead of the old StickerManagementActivity
This commit is contained in:
committed by
Cody Henthorne
parent
51851fa5fe
commit
04c14a82be
@@ -20,8 +20,10 @@ import androidx.compose.animation.slideOutVertically
|
||||
import androidx.compose.foundation.layout.fillMaxWidth
|
||||
import androidx.compose.foundation.layout.padding
|
||||
import androidx.compose.foundation.layout.wrapContentHeight
|
||||
import androidx.compose.foundation.shape.RoundedCornerShape
|
||||
import androidx.compose.runtime.Composable
|
||||
import androidx.compose.ui.Modifier
|
||||
import androidx.compose.ui.draw.shadow
|
||||
import androidx.compose.ui.platform.LocalDensity
|
||||
import androidx.compose.ui.unit.dp
|
||||
import androidx.compose.ui.viewinterop.AndroidView
|
||||
@@ -168,11 +170,20 @@ fun SignalBottomActionBar(
|
||||
AndroidView(
|
||||
factory = { context ->
|
||||
SignalBottomActionBar(context, null)
|
||||
.apply { setItems(items) }
|
||||
.apply {
|
||||
elevation = 0f
|
||||
setItems(items)
|
||||
}
|
||||
},
|
||||
update = { view ->
|
||||
view.setItems(items)
|
||||
}
|
||||
},
|
||||
modifier = Modifier
|
||||
.padding(4.dp) // prevent shadow clipping during visibility animations
|
||||
.shadow(
|
||||
elevation = 4.dp,
|
||||
shape = RoundedCornerShape(18.dp)
|
||||
)
|
||||
)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user