Skip to content

Commit 489e7f5

Browse files
committed
Refactor: Remove explicit androidx.compose.ui.graphics.ImageBitmap type
1 parent b9327e6 commit 489e7f5

1 file changed

Lines changed: 9 additions & 9 deletions

File tree

  • app/src/main/java/de/berlindroid/zepatch/patchable

app/src/main/java/de/berlindroid/zepatch/patchable/Demo.kt

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ import androidx.compose.runtime.setValue
1919
import androidx.compose.ui.Modifier
2020
import androidx.compose.ui.graphics.Brush
2121
import androidx.compose.ui.graphics.Color
22+
import androidx.compose.ui.graphics.ImageBitmap
2223
import androidx.compose.ui.graphics.Shadow
2324
import androidx.compose.ui.res.painterResource
2425
import androidx.compose.ui.text.TextStyle
@@ -33,13 +34,12 @@ import de.berlindroid.zepatch.R
3334
import de.berlindroid.zepatch.annotations.Patch
3435
import de.berlindroid.zepatch.ui.SafeArea
3536

36-
3737
@OptIn(ExperimentalMaterial3Api::class)
3838
@Patch("AppLogo")
3939
@Composable
4040
fun AppLogo(
4141
shouldCapture: Boolean = false,
42-
onBitmap: (androidx.compose.ui.graphics.ImageBitmap) -> Unit = {},
42+
onBitmap: (ImageBitmap) -> Unit = {},
4343
) {
4444
SafeArea(
4545
shouldCapture = shouldCapture,
@@ -59,7 +59,7 @@ fun AppLogo(
5959
@Composable
6060
fun BerlindroidLogo(
6161
shouldCapture: Boolean = false,
62-
onBitmap: (androidx.compose.ui.graphics.ImageBitmap) -> Unit = {},
62+
onBitmap: (ImageBitmap) -> Unit = {},
6363
) {
6464
SafeArea(
6565
shouldCapture = shouldCapture,
@@ -79,7 +79,7 @@ fun BerlindroidLogo(
7979
@Composable
8080
fun GoogleLogo(
8181
shouldCapture: Boolean = false,
82-
onBitmap: (androidx.compose.ui.graphics.ImageBitmap) -> Unit = {},
82+
onBitmap: (ImageBitmap) -> Unit = {},
8383
) {
8484
SafeArea(
8585
shouldCapture = shouldCapture,
@@ -99,7 +99,7 @@ fun GoogleLogo(
9999
@Composable
100100
fun AndroidLogo(
101101
shouldCapture: Boolean = false,
102-
onBitmap: (androidx.compose.ui.graphics.ImageBitmap) -> Unit = {},
102+
onBitmap: (ImageBitmap) -> Unit = {},
103103
) {
104104
SafeArea(
105105
shouldCapture = shouldCapture,
@@ -118,7 +118,7 @@ fun AndroidLogo(
118118
@Composable
119119
fun AndyA(
120120
shouldCapture: Boolean = false,
121-
onBitmap: (androidx.compose.ui.graphics.ImageBitmap) -> Unit = {},
121+
onBitmap: (ImageBitmap) -> Unit = {},
122122
) {
123123
var name by remember { mutableStateOf("Andy") }
124124
Column {
@@ -168,7 +168,7 @@ fun AndyA(
168168
@Composable
169169
fun AndyB(
170170
shouldCapture: Boolean = false,
171-
onBitmap: (androidx.compose.ui.graphics.ImageBitmap) -> Unit = {},
171+
onBitmap: (ImageBitmap) -> Unit = {},
172172
) {
173173
SafeArea(
174174
shouldCapture = shouldCapture,
@@ -216,7 +216,7 @@ fun AndyB(
216216
@Composable
217217
fun Emoji(
218218
shouldCapture: Boolean = false,
219-
onBitmap: (androidx.compose.ui.graphics.ImageBitmap) -> Unit = {},
219+
onBitmap: (ImageBitmap) -> Unit = {},
220220
) {
221221
SafeArea(
222222
shouldCapture = shouldCapture,
@@ -230,7 +230,7 @@ fun Emoji(
230230
@Composable
231231
fun Emoji2(
232232
shouldCapture: Boolean = false,
233-
onBitmap: (androidx.compose.ui.graphics.ImageBitmap) -> Unit = {},
233+
onBitmap: (ImageBitmap) -> Unit = {},
234234
) {
235235
SafeArea(
236236
shouldCapture = shouldCapture,

0 commit comments

Comments
 (0)