Skip to content

Commit

Permalink
此处修改是为了打开旧编辑器不会启动新的后台,当离开编辑器时,从后台或手机主界面打开软件时,会回到编辑器而不是主界面
Browse files Browse the repository at this point in the history
Signed-off-by: Lin <[email protected]>
  • Loading branch information
Lin committed Dec 9, 2023
1 parent cd41bca commit ac375ab
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions app/src/main/java/org/autojs/autojs/model/script/Scripts.kt
Original file line number Diff line number Diff line change
Expand Up @@ -3,28 +3,24 @@ package org.autojs.autojs.model.script
import android.content.Context
import android.content.Intent
import android.net.Uri
import androidx.annotation.Nullable
import android.widget.Toast

import androidx.annotation.Nullable
import com.stardust.app.GlobalAppContext
import com.stardust.autojs.execution.ExecutionConfig
import com.stardust.autojs.execution.ScriptExecution
import com.stardust.autojs.execution.SimpleScriptExecutionListener
import com.stardust.autojs.runtime.exception.ScriptInterruptedException
import com.stardust.autojs.script.ScriptSource
import com.stardust.util.IntentUtil

import org.autojs.autojs.Pref
import org.autojs.autoxjs.R
import org.autojs.autojs.autojs.AutoJs
import org.autojs.autojs.external.ScriptIntents
import org.autojs.autojs.external.fileprovider.AppFileProvider
import org.autojs.autojs.external.shortcut.Shortcut
import org.autojs.autojs.external.shortcut.ShortcutActivity
import org.autojs.autojs.ui.edit.EditActivity

import org.autojs.autoxjs.R
import org.mozilla.javascript.RhinoException

import java.io.File
import java.io.FileFilter

Expand Down Expand Up @@ -91,7 +87,7 @@ object Scripts {


fun edit(context: Context, file: ScriptFile) {
EditActivity.editFile(context, file.simplifiedName, file.path, true)
EditActivity.editFile(context, file.simplifiedName, file.path, false)
}

fun edit(context: Context, path: String) {
Expand Down

0 comments on commit ac375ab

Please sign in to comment.