Skip to content

Commit 0682504

Browse files
Applied spotless
1 parent 628199c commit 0682504

File tree

16 files changed

+42
-11
lines changed

16 files changed

+42
-11
lines changed

JetLagged/app/src/main/java/com/example/jetlagged/sleep/SleepBar.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ private fun SleepRoundedBar(sleepData: SleepDayData, transition: Transition<Bool
124124
spring(
125125
dampingRatio = Spring.DampingRatioLowBouncy,
126126
stiffness =
127-
Spring.StiffnessLow,
127+
Spring.StiffnessLow,
128128
)
129129
}) { targetExpanded ->
130130
if (targetExpanded) 100.dp else 24.dp
@@ -133,7 +133,7 @@ private fun SleepRoundedBar(sleepData: SleepDayData, transition: Transition<Bool
133133
spring(
134134
dampingRatio = Spring.DampingRatioLowBouncy,
135135
stiffness =
136-
Spring.StiffnessLow,
136+
Spring.StiffnessLow,
137137
)
138138
}) { target ->
139139
if (target) 1f else 0f

JetNews/app/src/main/java/com/example/jetnews/ui/article/PostContent.kt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -246,7 +246,9 @@ private fun ParagraphType.getTextAndParagraphStyle(): ParagraphStyling {
246246

247247
when (this) {
248248
ParagraphType.Caption -> textStyle = typography.labelMedium
249+
249250
ParagraphType.Title -> textStyle = typography.headlineLarge
251+
250252
ParagraphType.Subhead -> {
251253
textStyle = typography.headlineSmall
252254
trailingPadding = 16.dp
@@ -266,6 +268,7 @@ private fun ParagraphType.getTextAndParagraphStyle(): ParagraphStyling {
266268
)
267269

268270
ParagraphType.Quote -> textStyle = typography.bodyLarge
271+
269272
ParagraphType.Bullet -> {
270273
paragraphStyle = ParagraphStyle(textIndent = TextIndent(firstLine = 8.sp))
271274
}

JetNews/app/src/main/java/com/example/jetnews/ui/home/HomeRoute.kt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -128,6 +128,7 @@ fun HomeRoute(
128128
onSearchInputChanged = onSearchInputChanged,
129129
)
130130
}
131+
131132
HomeScreenType.Feed -> {
132133
HomeFeedScreen(
133134
uiState = uiState,
@@ -142,6 +143,7 @@ fun HomeRoute(
142143
onSearchInputChanged = onSearchInputChanged,
143144
)
144145
}
146+
145147
HomeScreenType.ArticleDetails -> {
146148
// Guaranteed by above condition for home screen type
147149
check(uiState is HomeUiState.HasPosts)
@@ -198,8 +200,10 @@ private fun getHomeScreenType(isExpandedScreen: Boolean, uiState: HomeUiState):
198200
HomeScreenType.Feed
199201
}
200202
}
203+
201204
is HomeUiState.NoPosts -> HomeScreenType.Feed
202205
}
203206
}
207+
204208
true -> HomeScreenType.FeedWithArticleDetails
205209
}

JetNews/app/src/main/java/com/example/jetnews/ui/home/HomeViewModel.kt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -156,6 +156,7 @@ class HomeViewModel(private val postsRepository: PostsRepository, preSelectedPos
156156
viewModelState.update {
157157
when (result) {
158158
is Result.Success -> it.copy(postsFeed = result.data, isLoading = false)
159+
159160
is Result.Error -> {
160161
val errorMessages = it.errorMessages + ErrorMessage(
161162
id = UUID.randomUUID().mostSignificantBits,

JetNews/app/src/main/java/com/example/jetnews/ui/interests/InterestsScreen.kt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -363,6 +363,7 @@ private fun InterestsTabRow(
363363
InterestsTabRowContent(selectedTabIndex, updateSection, tabContent)
364364
}
365365
}
366+
366367
true -> {
367368
ScrollableTabRow(
368369
selectedTabIndex = selectedTabIndex,

Jetchat/app/src/main/java/com/example/compose/jetchat/conversation/MessageFormatter.kt

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -126,27 +126,31 @@ private fun getSymbolAnnotation(
126126
tag = SymbolAnnotationType.PERSON.name,
127127
),
128128
)
129+
129130
'*' -> SymbolAnnotation(
130131
AnnotatedString(
131132
text = matchResult.value.trim('*'),
132133
spanStyle = SpanStyle(fontWeight = FontWeight.Bold),
133134
),
134135
null,
135136
)
137+
136138
'_' -> SymbolAnnotation(
137139
AnnotatedString(
138140
text = matchResult.value.trim('_'),
139141
spanStyle = SpanStyle(fontStyle = FontStyle.Italic),
140142
),
141143
null,
142144
)
145+
143146
'~' -> SymbolAnnotation(
144147
AnnotatedString(
145148
text = matchResult.value.trim('~'),
146149
spanStyle = SpanStyle(textDecoration = TextDecoration.LineThrough),
147150
),
148151
null,
149152
)
153+
150154
'`' -> SymbolAnnotation(
151155
AnnotatedString(
152156
text = matchResult.value.trim('`'),
@@ -159,6 +163,7 @@ private fun getSymbolAnnotation(
159163
),
160164
null,
161165
)
166+
162167
'h' -> SymbolAnnotation(
163168
AnnotatedString(
164169
text = matchResult.value,
@@ -173,6 +178,7 @@ private fun getSymbolAnnotation(
173178
tag = SymbolAnnotationType.LINK.name,
174179
),
175180
)
181+
176182
else -> SymbolAnnotation(AnnotatedString(matchResult.value), null)
177183
}
178184
}

Jetchat/app/src/main/java/com/example/compose/jetchat/conversation/UserInput.kt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -224,10 +224,15 @@ private fun SelectorExpanded(currentSelector: InputSelector, onCloseRequested: (
224224
Surface(tonalElevation = 8.dp) {
225225
when (currentSelector) {
226226
InputSelector.EMOJI -> EmojiSelector(onTextAdded, focusRequester)
227+
227228
InputSelector.DM -> NotAvailablePopup(onCloseRequested)
229+
228230
InputSelector.PICTURE -> FunctionalityNotAvailablePanel()
231+
229232
InputSelector.MAP -> FunctionalityNotAvailablePanel()
233+
230234
InputSelector.PHONE -> FunctionalityNotAvailablePanel()
235+
231236
else -> {
232237
throw NotImplementedError()
233238
}

Jetchat/app/src/main/java/com/example/compose/jetchat/theme/Themes.kt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,10 +94,13 @@ fun JetchatTheme(isDarkTheme: Boolean = isSystemInDarkTheme(), isDynamicColor: B
9494
dynamicColor && isDarkTheme -> {
9595
dynamicDarkColorScheme(LocalContext.current)
9696
}
97+
9798
dynamicColor && !isDarkTheme -> {
9899
dynamicLightColorScheme(LocalContext.current)
99100
}
101+
100102
isDarkTheme -> JetchatDarkColorScheme
103+
101104
else -> JetchatLightColorScheme
102105
}
103106

Jetsnack/app/src/main/java/com/example/jetsnack/ui/home/DestinationBar.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ fun DestinationBar(modifier: Modifier = Modifier) {
8989
painter = painterResource(id = R.drawable.ic_expand_more),
9090
tint = JetsnackTheme.colors.brand,
9191
contentDescription =
92-
stringResource(R.string.label_select_delivery),
92+
stringResource(R.string.label_select_delivery),
9393
)
9494
}
9595
}

Jetsnack/app/src/main/java/com/example/jetsnack/ui/home/search/Search.kt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,7 @@ fun Search(onSnackClick: (Long, String) -> Unit, modifier: Modifier = Modifier,
8484
}
8585
when (state.searchDisplay) {
8686
SearchDisplay.Categories -> SearchCategories(state.categories)
87+
8788
SearchDisplay.Suggestions -> SearchSuggestions(
8889
suggestions = state.suggestions,
8990
onSuggestionSelect = { suggestion ->

0 commit comments

Comments
 (0)