From fe217f13a885c0fc7da1159c9b342791ad73a2b5 Mon Sep 17 00:00:00 2001 From: Levin Li Date: Fri, 17 Feb 2023 18:38:37 +0800 Subject: [PATCH] Remove prompt for script execution in add-on --- app/src/main/AndroidManifest.xml | 2 +- app/src/main/java/space/celestia/mobilecelestia/MainActivity.kt | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/src/main/AndroidManifest.xml b/app/src/main/AndroidManifest.xml index a39fe48c..a41a6aaf 100644 --- a/app/src/main/AndroidManifest.xml +++ b/app/src/main/AndroidManifest.xml @@ -13,7 +13,7 @@ diff --git a/app/src/main/java/space/celestia/mobilecelestia/MainActivity.kt b/app/src/main/java/space/celestia/mobilecelestia/MainActivity.kt index 24d82a09..f0feea0e 100644 --- a/app/src/main/java/space/celestia/mobilecelestia/MainActivity.kt +++ b/app/src/main/java/space/celestia/mobilecelestia/MainActivity.kt @@ -1066,7 +1066,7 @@ class MainActivity : AppCompatActivity(R.layout.activity_main), } override fun onRunScript(file: File) { - requestRunScript(file.absolutePath) + openCelestiaURL(file.absolutePath) } override fun onRunScript(type: String, content: String, name: String?, location: String?, contextDirectory: File?) {