Skip to content

Commit 3688f80

Browse files
committed
chore: formatting.
1 parent ba34a35 commit 3688f80

File tree

2 files changed

+9
-7
lines changed

2 files changed

+9
-7
lines changed

app/src/main/java/com/osfans/trime/data/theme/ColorManager.kt

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -44,12 +44,14 @@ object ColorManager {
4444
set(value) {
4545
if (this::_activeColorScheme.isInitialized && _activeColorScheme == value) return
4646
_activeColorScheme = value
47-
lightModeColorScheme = runCatching {
48-
_activeColorScheme.values["light_scheme"]?.let { colorScheme(it) }
49-
}.getOrNull()
50-
darkModeColorScheme = runCatching {
51-
_activeColorScheme.values["dark_scheme"]?.let { colorScheme(it) }
52-
}.getOrNull()
47+
lightModeColorScheme =
48+
runCatching {
49+
_activeColorScheme.values["light_scheme"]?.let { colorScheme(it) }
50+
}.getOrNull()
51+
darkModeColorScheme =
52+
runCatching {
53+
_activeColorScheme.values["dark_scheme"]?.let { colorScheme(it) }
54+
}.getOrNull()
5355
fireChange()
5456
}
5557

app/src/main/java/com/osfans/trime/ime/keyboard/KeyboardWindow.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ class KeyboardWindow(
155155
".last_lock" -> lastLockKeyboardId
156156
".ascii" -> {
157157
var ascii = currentKeyboard?.asciiKeyboard
158-
if(ascii.isNullOrEmpty()) {
158+
if (ascii.isNullOrEmpty()) {
159159
ascii = lastLockKeyboardId
160160
}
161161
if (presetKeyboardIds.contains(ascii)) ascii else currentKeyboardId

0 commit comments

Comments
 (0)