mirror of
https://github.com/fankes/termux-app.git
synced 2025-09-06 10:45:23 +08:00
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:
committed by
Fredrik Fornwall
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();
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user