File tree Expand file tree Collapse file tree
pio/src/main/java/com/projectkr/shell Expand file tree Collapse file tree Original file line number Diff line number Diff 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
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments