Skip to content
This repository has been archived by the owner on Jul 2, 2024. It is now read-only.

Commit

Permalink
Tidy up code style
Browse files Browse the repository at this point in the history
  • Loading branch information
SanmerDev committed Jun 11, 2024
1 parent 88d86ed commit 12c2d02
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ fun CollapsingTopAppBar(
actions = actions,
colors = colors,
windowInsets = windowInsets,
pinnedHeight = 64.0.dp,
pinnedHeight = 64.0.dp,
scrollBehavior = scrollBehavior
)
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ object SegmentedButtonsDefaults {
@Composable
fun border(
width: Dp = 1.dp,
color: Color = MaterialTheme.colorScheme.outline
color: Color = MaterialTheme.colorScheme.outline
) = BorderStroke(
width = width,
color = color
Expand Down Expand Up @@ -197,7 +197,7 @@ object SegmentedButtonsDefaults {
brush = border.brush,
start = Offset(center.x, 0f),
end = Offset(center.x, size.height),
strokeWidth = size.width
strokeWidth = size.width
)
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,11 @@ import androidx.compose.runtime.mutableStateOf
import androidx.compose.runtime.setValue
import androidx.lifecycle.ViewModel
import androidx.lifecycle.viewModelScope
import dagger.hilt.android.lifecycle.HiltViewModel
import dev.sanmer.mrepo.database.entity.RepoEntity
import dev.sanmer.mrepo.database.entity.RepoEntity.Companion.toRepo
import dev.sanmer.mrepo.repository.LocalRepository
import dev.sanmer.mrepo.repository.ModulesRepository
import dagger.hilt.android.lifecycle.HiltViewModel
import dev.sanmer.mrepo.database.entity.RepoEntity
import kotlinx.coroutines.flow.MutableStateFlow
import kotlinx.coroutines.flow.asStateFlow
import kotlinx.coroutines.flow.launchIn
Expand All @@ -32,7 +32,7 @@ class RepositoriesViewModel @Inject constructor(
var progress by mutableStateOf(false)
private set
private inline fun <T> T.refreshing(callback: T.() -> Unit) {
progress = true
progress = true
callback()
progress = false
}
Expand Down

0 comments on commit 12c2d02

Please sign in to comment.