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:
Jeffrey Starke
2025-05-02 09:33:03 -04:00
committed by Cody Henthorne
parent 51851fa5fe
commit 04c14a82be
6 changed files with 189 additions and 24 deletions

View File

@@ -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)
)
)
}
}