Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion libs/network/exchange/.gitignore

This file was deleted.

19 changes: 0 additions & 19 deletions libs/network/exchange/build.gradle.kts

This file was deleted.

This file was deleted.

1 change: 0 additions & 1 deletion settings.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,6 @@ include(
":libs:logging",
":libs:messaging",
":libs:models",
":libs:network:exchange",
":libs:opengraph",

":libs:network:coinbase:onramp",
Expand Down
1 change: 0 additions & 1 deletion ui/components/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ dependencies {
implementation(project(":libs:currency"))
implementation(project(":libs:messaging"))
implementation(project(":libs:models"))
implementation(project(":libs:network:exchange"))
implementation(project(":libs:network:connectivity:public"))
implementation(project(":libs:opengraph"))
implementation(project(":libs:vibrator:public"))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ import com.getcode.ui.theme.CodeButton
import com.getcode.util.resources.R
import kotlinx.coroutines.delay
import kotlinx.coroutines.launch
import kotlin.time.Duration.Companion.milliseconds

@Composable
fun BottomBarContainer(barMessages: BarMessages, onShown: (BottomBarManager.BottomBarMessage) -> Unit = {}) {
Expand All @@ -82,7 +83,7 @@ fun BottomBarContainer(barMessages: BarMessages, onShown: (BottomBarManager.Bott
BottomBarManager.setMessageShown(bottomBarMessageDismissId)
bottomBarVisibleState.targetState = false

delay(300.scaled(animationScale))
delay(300.scaled(animationScale).milliseconds)
if (fromTimeout) {
dismissingMessage?.onTimeout?.invoke()
} else {
Expand All @@ -93,7 +94,7 @@ fun BottomBarContainer(barMessages: BarMessages, onShown: (BottomBarManager.Bott
// handle changes in visible state
LaunchedEffect(bottomBarVisibleState) {
if (!bottomBarVisibleState.targetState && !bottomBarVisibleState.currentState) {
delay(50.scaled(animationScale))
delay(50.scaled(animationScale).milliseconds)
bottomBarVisibleState.targetState = bottomBarMessage != null

if (bottomBarMessageDismissId == bottomBarMessage?.id) {
Expand All @@ -105,7 +106,7 @@ fun BottomBarContainer(barMessages: BarMessages, onShown: (BottomBarManager.Bott
// handle provided timeout duration; triggering onClose with no action
LaunchedEffect(bottomBarMessage) {
bottomBarMessage?.timeoutSeconds?.let {
delay(it * 1000L)
delay((it * 1000L).milliseconds)
onClose(SelectedBottomBarAction(-1), true)
}
}
Expand Down
Loading