File tree Expand file tree Collapse file tree
app/src/main/java/to/bitkit
ui/screens/widgets/blocks Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11package to.bitkit.appwidget.ui.blocks
22
33import android.appwidget.AppWidgetManager
4+ import android.content.Context
45import android.content.Intent
56import androidx.annotation.DrawableRes
67import androidx.compose.runtime.Composable
@@ -144,7 +145,7 @@ private fun CompactRow(row: BlockRow) {
144145}
145146
146147private fun buildRows (
147- context : android.content. Context ,
148+ context : Context ,
148149 preferences : HomeBlocksPreferences ,
149150 block : BlockModel ,
150151): ImmutableList <BlockRow > = listOfNotNull(
Original file line number Diff line number Diff 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
277277private fun Preview () {
278278 AppThemeSurface {
279- BlocksEditContent (
279+ Content (
280280 onBack = {},
281281 onClickShowBlock = {},
282282 onClickShowTime = {},
@@ -305,7 +305,7 @@ private fun Preview() {
305305@Composable
306306private fun PreviewWithSomeOptionsEnabled () {
307307 AppThemeSurface {
308- BlocksEditContent (
308+ Content (
309309 onBack = {},
310310 onClickShowBlock = {},
311311 onClickShowTime = {},
@@ -342,7 +342,7 @@ private fun PreviewWithSomeOptionsEnabled() {
342342@Composable
343343private fun PreviewWithAllDisabled () {
344344 AppThemeSurface {
345- BlocksEditContent (
345+ Content (
346346 onBack = {},
347347 onClickShowBlock = {},
348348 onClickShowTime = {},
Original file line number Diff line number Diff 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
205205private 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
229229private 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}
You can’t perform that action at this time.
0 commit comments