Do not clear the sessions on ACTION_STOP_SERVICE

There is no point doing so and it may cause problems with the list
adapter.
This commit is contained in:
Fredrik Fornwall
2017-11-26 00:56:13 +01:00
parent 231c02a0c7
commit 8b566485e8

View File

@@ -244,7 +244,6 @@ public final class TermuxService extends Service implements SessionChangedCallba
for (int i = 0; i < mTerminalSessions.size(); i++) for (int i = 0; i < mTerminalSessions.size(); i++)
mTerminalSessions.get(i).finishIfRunning(); mTerminalSessions.get(i).finishIfRunning();
mTerminalSessions.clear();
} }
public List<TerminalSession> getSessions() { public List<TerminalSession> getSessions() {