Skip to content

Commit 41582c9

Browse files
committed
fix crash
1 parent 172c9bb commit 41582c9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/src/main/java/org/andbootmgr/app/util/Terminal.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@ fun TerminalWork(logFile: String? = null, action: suspend (TerminalList) -> Unit
172172
val ctx = LocalContext.current.applicationContext
173173
LaunchedEffect(Unit) {
174174
val logDispatcher = Dispatchers.IO.limitedParallelism(1)
175-
val log = logFile?.let { SuFileOutputStream.open(File(ctx.externalCacheDir, it)) }
175+
val log = logFile?.let { SuFileOutputStream.open(File(ctx.externalCacheDirs.first(), it)) }
176176
val s = BudgetCallbackList(CoroutineScope(logDispatcher), log)
177177
StayAliveConnection(ctx, {
178178
withContext(Dispatchers.Default) {

0 commit comments

Comments
 (0)