Skip to content

Commit 57543d2

Browse files
committed
style: reformat
1 parent 52d82e8 commit 57543d2

File tree

2 files changed

+7
-7
lines changed
  • app/src/main/kotlin/com/schwegelbin/openbible

2 files changed

+7
-7
lines changed

app/src/main/kotlin/com/schwegelbin/openbible/logic/Main.kt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -266,9 +266,9 @@ fun restoreBackup(context: Context, uri: Uri, user: Boolean, onFinished: () -> U
266266
}
267267
}
268268

269-
if (!user) {
270-
// TODO: Restore Preferences
271-
}
269+
/* TODO: Restore Preferences
270+
if (!user) { }
271+
*/
272272
}
273273

274274
fun turnChapter(

app/src/main/kotlin/com/schwegelbin/openbible/ui/screens/Start.kt

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -53,12 +53,12 @@ fun StartScreen(onNavigateToRead: () -> Unit) {
5353
) {
5454
val state = remember { mutableIntStateOf(0) }
5555
val path = context.getExternalFilesDir("")
56-
if (state.intValue == 0 && getCheckAtStartup(context) && File("${path}/Index/translations.json").exists() && File(
57-
"${path}/Index/checksum.json"
58-
).exists()
59-
)
56+
if (state.intValue == 0 && getCheckAtStartup(context) &&
57+
File("${path}/Index/translations.json").exists() && File("${path}/Index/checksum.json").exists()
58+
) {
6059
if (File("${path}/Translations").list()?.isEmpty() == true) state.intValue = 2
6160
else state.intValue = 4
61+
}
6262
when (state.intValue) {
6363
0 -> {
6464
Spacer(Modifier.fillMaxHeight(0.4f))

0 commit comments

Comments
 (0)