Skip to content

Commit cb20c1d

Browse files
committed
Update android_system_bar_protection_kotlin to change alpha
1 parent f34038d commit cb20c1d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

views/src/main/java/insets/SystemBarProtectionSnippet.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,14 +55,14 @@ class SystemBarProtectionSnippet : AppCompatActivity() {
5555
val red = 52
5656
val green = 168
5757
val blue = 83
58+
val paneBackgroundColor = Color.argb(255, red, green, blue)
5859
findViewById<ProtectionLayout>(R.id.list_protection)
5960
.setProtections(
6061
listOf(
6162
GradientProtection(
6263
WindowInsetsCompat.Side.TOP,
6364
// Ideally, this is the pane's background color
64-
// alpha = 204 for an 80% gradient
65-
Color.argb(204, red, green, blue)
65+
paneBackgroundColor
6666
)
6767
)
6868
)

0 commit comments

Comments
 (0)