File tree 1 file changed +3
-10
lines changed
platform/android/java/editor/src/main/java/org/godotengine/editor
1 file changed +3
-10
lines changed Original file line number Diff line number Diff line change @@ -221,16 +221,9 @@ open class GodotEditor : GodotActivity() {
221
221
val runningProcesses = activityManager.runningAppProcesses
222
222
for (runningProcess in runningProcesses) {
223
223
if (runningProcess.processName.endsWith(processNameSuffix)) {
224
- if (targetClass == null ) {
225
- // Killing process directly
226
- Log .v(TAG , " Killing Godot process ${runningProcess.processName} " )
227
- Process .killProcess(runningProcess.pid)
228
- } else {
229
- // Activity is running; sending a request for self termination.
230
- Log .v(TAG , " Sending force quit request to $targetClass running on process ${runningProcess.processName} " )
231
- val forceQuitIntent = Intent (this , targetClass).putExtra(EXTRA_FORCE_QUIT , true )
232
- startActivity(forceQuitIntent)
233
- }
224
+ // Killing process directly
225
+ Log .v(TAG , " Killing Godot process ${runningProcess.processName} " )
226
+ Process .killProcess(runningProcess.pid)
234
227
return true
235
228
}
236
229
}
You can’t perform that action at this time.
0 commit comments