Skip to content

Commit 90efb82

Browse files
committed
style: reformat
1 parent 096d489 commit 90efb82

File tree

6 files changed

+12
-13
lines changed

6 files changed

+12
-13
lines changed

base/src/main/java/io/github/sds100/keymapper/base/actions/ConfigShellCommandViewModel.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -101,11 +101,11 @@ class ConfigShellCommandViewModel @Inject constructor(
101101
executeShellCommandUseCase.executeWithStreamingOutput(
102102
command = state.command,
103103
executionMode = state.executionMode,
104-
timeoutMillis = state.timeoutSeconds * 1000L
104+
timeoutMillis = state.timeoutSeconds * 1000L,
105105
).collect { result ->
106106
val isRunning = result.handle(
107107
onSuccess = { it.isExecuting() },
108-
onError = { false }
108+
onError = { false },
109109
)
110110

111111
state = state.copy(isRunning = isRunning, testResult = result)

base/src/main/java/io/github/sds100/keymapper/base/actions/ExecuteShellCommandUseCase.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ class ExecuteShellCommandUseCase @Inject constructor(
4040
return when (executionMode) {
4141
ShellExecutionMode.STANDARD -> shellAdapter.executeWithStreamingOutput(
4242
command,
43-
timeoutMillis
43+
timeoutMillis,
4444
)
4545

4646
ShellExecutionMode.ROOT -> suAdapter.executeWithStreamingOutput(command, timeoutMillis)
@@ -56,7 +56,7 @@ class ExecuteShellCommandUseCase @Inject constructor(
5656
*/
5757
private suspend fun executeCommandSystemBridge(
5858
command: String,
59-
timeoutMillis: Long
59+
timeoutMillis: Long,
6060
): KMResult<ShellResult> {
6161
return if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.Q) {
6262
runInterruptible(Dispatchers.IO) {

base/src/main/java/io/github/sds100/keymapper/base/home/AnimatedFloatingActionButton.kt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ private fun PreviewAnimatedFloatingActionButton() {
4949
pulse = false,
5050
showFabText = true,
5151
text = "New Key Map",
52-
onClick = {}
52+
onClick = {},
5353
)
5454
}
5555
}
@@ -62,7 +62,7 @@ private fun PreviewAnimatedFloatingActionButtonPulsing() {
6262
pulse = true,
6363
showFabText = true,
6464
text = "New Key Map",
65-
onClick = {}
65+
onClick = {},
6666
)
6767
}
68-
}
68+
}

base/src/main/java/io/github/sds100/keymapper/base/home/KeyMapListViewModel.kt

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -311,7 +311,6 @@ class KeyMapListViewModel(
311311
}
312312
}
313313

314-
315314
coroutineScope.launch {
316315
combine(
317316
listItemStateFlow,
@@ -889,5 +888,4 @@ class KeyMapListViewModel(
889888
}
890889
}
891890
}
892-
893891
}

base/src/main/java/io/github/sds100/keymapper/base/onboarding/OnboardingTipDelegate.kt

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ class OnboardingTipDelegateImpl @Inject constructor(
3737
private val configTriggerUseCase: ConfigTriggerUseCase,
3838
private val configActionsUseCase: ConfigActionsUseCase,
3939
resourceProvider: ResourceProvider,
40-
navigationProvider: NavigationProvider
40+
navigationProvider: NavigationProvider,
4141
) : OnboardingTipDelegate,
4242
NavigationProvider by navigationProvider,
4343
PreferenceRepository by preferenceRepository,
@@ -266,7 +266,8 @@ class OnboardingTipDelegateImpl @Inject constructor(
266266
when (action.data) {
267267
is ActionData.Volume.SetRingerMode,
268268
is ActionData.Volume.CycleRingerMode,
269-
is ActionData.Volume.CycleVibrateRing -> true
269+
is ActionData.Volume.CycleVibrateRing,
270+
-> true
270271

271272
else -> false
272273
}

base/src/main/java/io/github/sds100/keymapper/base/onboarding/TipCard.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ fun TipCard(
8686
.padding(horizontal = 16.dp)
8787
.align(Alignment.End),
8888
onClick = onButtonClick,
89-
colors = ButtonDefaults.textButtonColors(contentColor = color)
89+
colors = ButtonDefaults.textButtonColors(contentColor = color),
9090
) {
9191
Text(buttonText)
9292
}
@@ -120,7 +120,7 @@ private fun TipCardPreview() {
120120
TipCard(
121121
title = "Tip Title",
122122
message = "This is a helpful tip message that explains something important to the user. It can be multiple lines long and provides useful information.",
123-
buttonText = "Button"
123+
buttonText = "Button",
124124
)
125125
}
126126
}

0 commit comments

Comments
 (0)