Skip to content

Commit 2f0bcbb

Browse files
committed
Upload file
1 parent 054c3dc commit 2f0bcbb

1 file changed

Lines changed: 11 additions & 10 deletions

File tree

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

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

181-
private fun startToFinish() {
182-
binding.startStateText.text = getString(R.string.pop_started)
183-
184-
val config = KrScriptConfig().init(this)
185-
if (config.beforeStartSh.isNotEmpty()) {
186-
BeforeStartThread(this, config, hasRoot, UpdateLogViewHandler(binding.startStateText) {
181+
val config = KrScriptConfig().init(this)
182+
if (config.beforeStartSh.isNotEmpty()) {
183+
BeforeStartThread(
184+
this,
185+
config,
186+
hasRoot,
187+
UpdateLogViewHandler(binding.startStateText) {
187188
gotoHome()
188-
})).start()
189-
} else {
190-
gotoHome()
191-
}
189+
}
190+
).start()
191+
} else {
192+
gotoHome()
192193
}
193194

194195
private fun gotoHome() {

0 commit comments

Comments
 (0)