Skip to content

Commit

Permalink
automatic indentation fix
Browse files Browse the repository at this point in the history
  • Loading branch information
MavikBow committed Feb 1, 2025
1 parent 514d454 commit bfca4ab
Show file tree
Hide file tree
Showing 6 changed files with 18 additions and 16 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -31,13 +31,13 @@ fun BrowseAnimeSourceList(
onAnimeClick: (Anime) -> Unit,
onAnimeLongClick: (Anime) -> Unit,
) {
var containerHeight by remember { mutableIntStateOf(0)}
var containerHeight by remember { mutableIntStateOf(0) }
LazyColumn(
contentPadding = contentPadding + PaddingValues(vertical = 8.dp),
modifier = Modifier
.onGloballyPositioned { layoutCoordinates ->
containerHeight = layoutCoordinates.size.height - topBarHeight
}
containerHeight = layoutCoordinates.size.height - topBarHeight
},
) {
item {
if (animeList.loadState.prepend is LoadState.Loading) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ fun BrowseMangaSourceList(
modifier = Modifier
.onGloballyPositioned { layoutCoordinates ->
containerHeight = layoutCoordinates.size.height - topBarHeight
}
},
) {
item {
if (mangaList.loadState.prepend is LoadState.Loading) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -130,11 +130,12 @@ data class BrowseAnimeSourceScreen(
var topBarHeight by remember { mutableIntStateOf(0) }
Scaffold(
topBar = {
Column(modifier = Modifier
.background(MaterialTheme.colorScheme.surface)
.onGloballyPositioned { layoutCoordinates ->
topBarHeight = layoutCoordinates.size.height
},
Column(
modifier = Modifier
.background(MaterialTheme.colorScheme.surface)
.onGloballyPositioned { layoutCoordinates ->
topBarHeight = layoutCoordinates.size.height
},
) {
BrowseAnimeSourceToolbar(
searchQuery = state.toolbarQuery,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ class BrowseAnimeSourceScreenModel(
}

// returns the number from the size slider
fun getColumnsPreferenceForCurrentOrientation(orientation: Int) : Int {
fun getColumnsPreferenceForCurrentOrientation(orientation: Int): Int {
val isLandscape = orientation == Configuration.ORIENTATION_LANDSCAPE
return if (isLandscape) {
libraryPreferences.animeLandscapeColumns()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -130,11 +130,12 @@ data class BrowseMangaSourceScreen(
var topBarHeight by remember { mutableIntStateOf(0) }
Scaffold(
topBar = {
Column(modifier = Modifier
.background(MaterialTheme.colorScheme.surface)
.onGloballyPositioned { layoutCoordinates ->
topBarHeight = layoutCoordinates.size.height
},
Column(
modifier = Modifier
.background(MaterialTheme.colorScheme.surface)
.onGloballyPositioned { layoutCoordinates ->
topBarHeight = layoutCoordinates.size.height
},
) {
BrowseMangaSourceToolbar(
searchQuery = state.toolbarQuery,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ class BrowseMangaSourceScreenModel(
}

// returns the number from the size slider
fun getColumnsPreferenceForCurrentOrientation(orientation: Int) : Int {
fun getColumnsPreferenceForCurrentOrientation(orientation: Int): Int {
val isLandscape = orientation == Configuration.ORIENTATION_LANDSCAPE
return if (isLandscape) {
libraryPreferences.mangaLandscapeColumns()
Expand Down

0 comments on commit bfca4ab

Please sign in to comment.