Skip to content

Commit 656063f

Browse files
committed
Remove terminate method from AndroidPlugin
Eliminated the handling of the 'terminate' method call, including the delayed process termination logic, from the AndroidPlugin class.
1 parent 3ee0cc6 commit 656063f

File tree

1 file changed

+0
-7
lines changed
  • src/serious_python_android/android/src/main/java/com/flet/serious_python_android

1 file changed

+0
-7
lines changed

src/serious_python_android/android/src/main/java/com/flet/serious_python_android/AndroidPlugin.java

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -83,13 +83,6 @@ public void onMethodCall(@NonNull MethodCall call, @NonNull Result result) {
8383
} catch (Exception e) {
8484
result.error("Error", e.getMessage(), null);
8585
}
86-
} else if (call.method.equals("terminate")) {
87-
// Terminate the process shortly after responding to Dart.
88-
result.success(null);
89-
new Handler(Looper.getMainLooper()).postDelayed(
90-
() -> Process.killProcess(Process.myPid()),
91-
100
92-
);
9386
} else {
9487
result.notImplemented();
9588
}

0 commit comments

Comments
 (0)