Skip to content

Commit 9521914

Browse files
committed
Upload file
1 parent db7f531 commit 9521914

2 files changed

Lines changed: 8 additions & 257 deletions

File tree

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

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -202,8 +202,8 @@ class SplashActivity : AppCompatActivity() {
202202
ShellExecutor.getSuperUserRuntime()
203203
else
204204
ShellExecutor.getRuntime()
205-
process?.let {
206-
DataOutputStream(it.outputStream).use { os ->
205+
process?.let { proc ->
206+
DataOutputStream(proc.outputStream).use { os ->
207207
ScriptEnvironmen.executeShell(
208208
this@SplashActivity,
209209
os,
@@ -213,11 +213,15 @@ class SplashActivity : AppCompatActivity() {
213213
"pio-splash"
214214
)
215215
}
216+
proc.waitFor()
216217
}
217-
} catch (_: Exception) {
218+
} catch (e: Exception) {
219+
e.printStackTrace()
220+
}
221+
withContext(Dispatchers.Main) {
222+
gotoHome()
218223
}
219224
}
220-
gotoHome()
221225
}
222226

223227
// Buffer lưu 4 dòng cuối

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

Lines changed: 0 additions & 253 deletions
This file was deleted.

0 commit comments

Comments
 (0)