Skip to content

Commit 227bd52

Browse files
committed
perf: float button startLocation
1 parent 415c488 commit 227bd52

File tree

1 file changed

+10
-8
lines changed

1 file changed

+10
-8
lines changed

app/src/main/kotlin/li/songe/gkd/debug/FloatingService.kt

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -35,14 +35,16 @@ class FloatingService : ExpandableBubbleService(), OnCreate, OnDestroy {
3535
}
3636

3737
override fun configBubble(): BubbleBuilder {
38-
val builder = BubbleBuilder(this).bubbleCompose {
39-
Icon(
40-
imageVector = Icons.Default.CenterFocusWeak,
41-
contentDescription = "capture",
42-
modifier = Modifier.size(40.dp),
43-
tint = Color.Red
44-
)
45-
}.enableAnimateToEdge(false)
38+
val builder = BubbleBuilder(this)
39+
.startLocation(80, 80)
40+
.bubbleCompose {
41+
Icon(
42+
imageVector = Icons.Default.CenterFocusWeak,
43+
contentDescription = "capture",
44+
modifier = Modifier.size(40.dp),
45+
tint = Color.Red
46+
)
47+
}.enableAnimateToEdge(false)
4648

4749
// https://github.com/gkd-kit/gkd/issues/62
4850
// https://github.com/gkd-kit/gkd/issues/61

0 commit comments

Comments
 (0)