Skip to content

Commit 3495240

Browse files
committed
Upload file
1 parent 2f0bcbb commit 3495240

1 file changed

Lines changed: 14 additions & 12 deletions

File tree

pio/src/main/java/com/projectkr/shell/SplashActivity.kt

Lines changed: 14 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -178,18 +178,20 @@ class SplashActivity : AppCompatActivity() {
178178
}
179179
}
180180

181-
val config = KrScriptConfig().init(this)
182-
if (config.beforeStartSh.isNotEmpty()) {
183-
BeforeStartThread(
184-
this,
185-
config,
186-
hasRoot,
187-
UpdateLogViewHandler(binding.startStateText) {
188-
gotoHome()
189-
}
190-
).start()
191-
} else {
192-
gotoHome()
181+
private fun startToFinish() {
182+
val config = KrScriptConfig().init(this)
183+
if (config.beforeStartSh.isNotEmpty()) {
184+
BeforeStartThread(
185+
this,
186+
config,
187+
hasRoot,
188+
UpdateLogViewHandler(binding.startStateText) {
189+
gotoHome()
190+
}
191+
).start()
192+
} else {
193+
gotoHome()
194+
}
193195
}
194196

195197
private fun gotoHome() {

0 commit comments

Comments
 (0)