Refactor effects to @Composable
Change-Id: Ie26864f248a12d4ddea9f7c8b7f7eae7fd46a220
diff --git a/ui/ui-material/src/main/java/androidx/ui/material/Snackbar.kt b/ui/ui-material/src/main/java/androidx/ui/material/Snackbar.kt
index bab3b32..f540daa 100644
--- a/ui/ui-material/src/main/java/androidx/ui/material/Snackbar.kt
+++ b/ui/ui-material/src/main/java/androidx/ui/material/Snackbar.kt
@@ -17,7 +17,6 @@
package androidx.ui.material
import androidx.compose.Composable
-import androidx.compose.unaryPlus
import androidx.ui.core.CurrentTextStyleProvider
import androidx.ui.core.FirstBaseline
import androidx.ui.core.IntPx
@@ -76,7 +75,7 @@
>
style = TextButtonStyle(
// TODO: remove this when primary light variant is figured out
- contentColor = makePrimaryVariantLight((+MaterialTheme.colors()).primary)
+ contentColor = makePrimaryVariantLight(MaterialTheme.colors().primary)
)
)
}
@@ -120,14 +119,14 @@
modifier: Modifier = Modifier.None,
actionOnNewLine: Boolean = false
) {
- val colors = +MaterialTheme.colors()
+ val colors = MaterialTheme.colors()
Surface(
modifier = modifier,
shape = SnackbarShape,
elevation = SnackbarElevation,
color = colors.surface
) {
- val textStyle = (+MaterialTheme.typography()).body2.copy(color = colors.surface)
+ val textStyle = MaterialTheme.typography().body2.copy(color = colors.surface)
DrawShape(
shape = SnackbarShape,
color = colors.onSurface.copy(alpha = SnackbarOverlayAlpha)