mirror of
https://github.com/RfidResearchGroup/RFIDtools.git
synced 2026-05-12 11:19:59 -07:00
Don't close session at BackPressed.
This commit is contained in:
@@ -596,15 +596,10 @@ public final class TermuxActivity extends Activity implements ServiceConnection
|
||||
public void onDestroy() {
|
||||
super.onDestroy();
|
||||
if (mTermService != null) {
|
||||
// RFIDTools change: exit on activity destroy.
|
||||
startService(new Intent(this, TermuxService.class).setAction(TermuxService.ACTION_STOP_SERVICE));
|
||||
// Do not leave service with references to activity.
|
||||
mTermService.mSessionChangeCallback = null;
|
||||
mTermService = null;
|
||||
}
|
||||
// RFIDTools change: same top
|
||||
TerminalSession session = getCurrentTermSession();
|
||||
if (session != null) session.finishIfRunning();
|
||||
unbindService(this);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user