Skip to content

Commit d31c0b0

Browse files
committed
chore: lint
1 parent ce5d795 commit d31c0b0

3 files changed

Lines changed: 13 additions & 12 deletions

File tree

app/src/main/java/to/bitkit/appwidget/ui/blocks/BlocksGlanceContent.kt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
package to.bitkit.appwidget.ui.blocks
22

33
import android.appwidget.AppWidgetManager
4+
import android.content.Context
45
import android.content.Intent
56
import androidx.annotation.DrawableRes
67
import androidx.compose.runtime.Composable
@@ -144,7 +145,7 @@ private fun CompactRow(row: BlockRow) {
144145
}
145146

146147
private fun buildRows(
147-
context: android.content.Context,
148+
context: Context,
148149
preferences: HomeBlocksPreferences,
149150
block: BlockModel,
150151
): ImmutableList<BlockRow> = listOfNotNull(

app/src/main/java/to/bitkit/ui/screens/widgets/blocks/BlocksEditScreen.kt

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ fun BlocksEditScreen(
5454
fees = "",
5555
)
5656

57-
BlocksEditContent(
57+
Content(
5858
onBack = onBack,
5959
blocksPreferences = customPreference,
6060
block = currentBlock ?: blockPlaceholder,
@@ -71,7 +71,7 @@ fun BlocksEditScreen(
7171
}
7272

7373
@Composable
74-
fun BlocksEditContent(
74+
private fun Content(
7575
onBack: () -> Unit,
7676
onClickShowBlock: () -> Unit,
7777
onClickShowTime: () -> Unit,
@@ -276,7 +276,7 @@ private fun BlockEditOptionRow(
276276
@Composable
277277
private fun Preview() {
278278
AppThemeSurface {
279-
BlocksEditContent(
279+
Content(
280280
onBack = {},
281281
onClickShowBlock = {},
282282
onClickShowTime = {},
@@ -305,7 +305,7 @@ private fun Preview() {
305305
@Composable
306306
private fun PreviewWithSomeOptionsEnabled() {
307307
AppThemeSurface {
308-
BlocksEditContent(
308+
Content(
309309
onBack = {},
310310
onClickShowBlock = {},
311311
onClickShowTime = {},
@@ -342,7 +342,7 @@ private fun PreviewWithSomeOptionsEnabled() {
342342
@Composable
343343
private fun PreviewWithAllDisabled() {
344344
AppThemeSurface {
345-
BlocksEditContent(
345+
Content(
346346
onBack = {},
347347
onClickShowBlock = {},
348348
onClickShowTime = {},

app/src/main/java/to/bitkit/ui/screens/widgets/blocks/BlocksPreviewScreen.kt

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ fun BlocksPreviewScreen(
4646
blocksViewModel.refreshOnDisplay()
4747
}
4848

49-
BlocksPreviewContent(
49+
Content(
5050
onBack = onBack,
5151
isBlocksWidgetEnabled = isBlocksWidgetEnabled,
5252
blocksPreferences = customBlocksPreferences,
@@ -64,7 +64,7 @@ fun BlocksPreviewScreen(
6464
}
6565

6666
@Composable
67-
fun BlocksPreviewContent(
67+
private fun Content(
6868
onBack: () -> Unit,
6969
onClickEdit: () -> Unit,
7070
onClickDelete: () -> Unit,
@@ -204,7 +204,7 @@ fun BlocksPreviewContent(
204204
@Composable
205205
private fun Preview() {
206206
AppThemeSurface {
207-
BlocksPreviewContent(
207+
Content(
208208
onBack = {},
209209
onClickEdit = {},
210210
onClickDelete = {},
@@ -219,7 +219,7 @@ private fun Preview() {
219219
source = "mempool.space",
220220
fees = "25 059 357",
221221
),
222-
isBlocksWidgetEnabled = false
222+
isBlocksWidgetEnabled = false,
223223
)
224224
}
225225
}
@@ -228,7 +228,7 @@ private fun Preview() {
228228
@Composable
229229
private fun Preview2() {
230230
AppThemeSurface {
231-
BlocksPreviewContent(
231+
Content(
232232
onBack = {},
233233
onClickEdit = {},
234234
onClickDelete = {},
@@ -250,7 +250,7 @@ private fun Preview2() {
250250
source = "mempool.space",
251251
fees = "25 059 357",
252252
),
253-
isBlocksWidgetEnabled = true
253+
isBlocksWidgetEnabled = true,
254254
)
255255
}
256256
}

0 commit comments

Comments
 (0)