mirror of https://github.com/termux/termux-app
close sessions without waiting for user input except the last one
An attempt to deal with these issues: * https://github.com/termux/termux-app/issues/627 * https://github.com/termux/termux-app/issues/56
This commit is contained in:
parent
68a83ccf37
commit
963663e0cd
|
@ -388,6 +388,11 @@ public final class TermuxActivity extends Activity implements ServiceConnection
|
|||
if (indexOfSession >= 0)
|
||||
showToast(toToastTitle(finishedSession) + " - exited", true);
|
||||
}
|
||||
|
||||
if (mTermService.getSessions().size() > 1) {
|
||||
removeFinishedSession(finishedSession);
|
||||
}
|
||||
|
||||
mListViewAdapter.notifyDataSetChanged();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue