Skip to content

Commit a7f3013

Browse files
committed
fix: wrap shellManager.execute() in runBlocking for launchActivity
1 parent 291992c commit a7f3013

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

app/src/main/java/com/appcontrolx/bridge/NativeBridge.kt

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -285,8 +285,10 @@ class NativeBridge @Inject constructor(
285285
launchViaIntent(packageName, activityName)
286286
} else {
287287
// Shell launch (can launch non-exported activities)
288-
val result = shellManager.execute("am start -n $packageName/$activityName")
289-
result.isSuccess
288+
runBlocking {
289+
val result = shellManager.execute("am start -n $packageName/$activityName")
290+
result.isSuccess
291+
}
290292
}
291293
} catch (e: Exception) {
292294
false

0 commit comments

Comments
 (0)