Skip to content

Commit

Permalink
chore: remove blank lines
Browse files Browse the repository at this point in the history
  • Loading branch information
whitescent committed Apr 23, 2024
1 parent 6e5bb78 commit 69f3b57
Show file tree
Hide file tree
Showing 11 changed files with 19 additions and 31 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,6 @@ import kotlinx.coroutines.SupervisorJob
import kotlinx.coroutines.delay
import kotlinx.coroutines.launch


@Composable
fun <T : Any> LazyPagingList(
paginator: Paginator,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -318,7 +318,6 @@ fun Explore(
}
}


@Composable
fun ExploreTabBar(
currentExploreKind: ExplorerKind,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,6 @@ import com.github.whitescent.mastify.utils.FormatFactory.getRelativeTimeSpanStri
import com.github.whitescent.mastify.utils.clickableWithoutIndication
import kotlinx.datetime.toInstant


@Composable
fun BasicEvent(
event: Notification.Type.BasicEvent,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -280,7 +280,6 @@ fun StatusDetailTopBar(
}
}


@Composable
fun StatusDetailContent(
currentStatusId: String,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,6 @@ fun Profile(
}
}


@Composable
private fun ProfileTabs(
selectedTab: ProfileKind,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,6 @@ fun SearchResult(
}
}


@Composable
fun SearchResultTabBar(
currentSearchType: SearchType,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,6 @@ import com.github.whitescent.mastify.utils.clickableWithoutIndication
import kotlinx.collections.immutable.ImmutableList
import kotlinx.coroutines.launch


@Composable
fun EmojiSheet(
sheetState: SheetState,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -242,7 +242,6 @@ private fun ReplyTitleBar(
}
}


@Composable
private fun ReplyTextFieldWithToolBar(
textFieldState: TextFieldState,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -72,13 +72,12 @@ import kotlinx.coroutines.SupervisorJob
import kotlinx.coroutines.delay
import kotlinx.coroutines.launch


@Composable
fun LazyTimelinePagingList(
modifier: Modifier = Modifier,
lazyListState: LazyListState = rememberLazyListState(),
paginator: Paginator,
pagingList: ImmutableList<StatusUiData>,
modifier: Modifier = Modifier,
contentPadding: PaddingValues = PaddingValues(bottom = 100.dp),
paginatorUiState: PaginatorUiState = rememberPaginatorUiState(paginator),
pagePlaceholderType: PagePlaceholderType,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@ import androidx.compose.foundation.layout.navigationBarsPadding
import androidx.compose.foundation.layout.padding
import androidx.compose.foundation.layout.size
import androidx.compose.foundation.layout.statusBars
import androidx.compose.material3.ExperimentalMaterial3Api
import androidx.compose.material3.Icon
import androidx.compose.material3.ModalBottomSheet
import androidx.compose.material3.SheetState
Expand All @@ -54,7 +53,6 @@ import com.github.whitescent.mastify.ui.theme.AppTheme
import com.github.whitescent.mastify.utils.StatusAction
import kotlinx.coroutines.launch

@OptIn(ExperimentalMaterial3Api::class)
@Composable
fun StatusActionDrawer(
sheetState: SheetState,
Expand Down Expand Up @@ -103,28 +101,28 @@ fun StatusActionDrawer(
containerColor = AppTheme.colors.bottomSheetBackground,
modifier = modifier,
onDismissRequest = onDismissRequest
) {
Column(Modifier.navigationBarsPadding()) {
actions.forEach {
StatusMenuListItem(
action = it,
targetActionFullname = when (it.textHasArgs) {
true -> statusUiData.fullname
else -> null
}
) {
if (it.action is StatusAction.Bookmark) bookmarkState = !bookmarkState
scope.launch {
sheetState.hide()
}.invokeOnCompletion {
onDismissRequest()
}
actionHandler(it.action)
) {
Column(Modifier.navigationBarsPadding()) {
actions.forEach {
StatusMenuListItem(
action = it,
targetActionFullname = when (it.textHasArgs) {
true -> statusUiData.fullname
else -> null
}
) {
if (it.action is StatusAction.Bookmark) bookmarkState = !bookmarkState
scope.launch {
sheetState.hide()
}.invokeOnCompletion {
onDismissRequest()
}
if (it != actions.last()) AppHorizontalDivider()
actionHandler(it.action)
}
if (it != actions.last()) AppHorizontalDivider()
}
}
}
}

@Composable
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,6 @@ import kotlinx.coroutines.flow.stateIn
import kotlinx.coroutines.launch
import javax.inject.Inject


@HiltViewModel
class HomeViewModel @Inject constructor(
db: AppDatabase,
Expand Down

0 comments on commit 69f3b57

Please sign in to comment.