Made mainactivity 'exit' menu function the same as mainactivity2 for consistency.

This commit is contained in:
Graham Jones
2024-02-27 13:23:54 +00:00
parent 61c7668712
commit 092802cf1d
3 changed files with 5 additions and 2 deletions

View File

@@ -282,6 +282,8 @@ public class MainActivity extends AppCompatActivity {
Log.i(TAG, "Stopping Server");
mUtil.unbindFromServer(getApplicationContext(), mConnection);
stopServer();
// we exit the activity when the server is stopped to make it consistent with MainActivity2
finish();
} else {
Log.i(TAG, "Starting Server");
startServer();