Made mainactivity 'exit' menu function the same as mainactivity2 for consistency.
This commit is contained in:
@@ -1,8 +1,8 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:tools="http://schemas.android.com/tools"
|
||||
android:versionCode="135"
|
||||
android:versionName="4.2.1">
|
||||
android:versionCode="136"
|
||||
android:versionName="4.2.2">
|
||||
<!-- android:allowBackup="false" -->
|
||||
<uses-permission android:name="android.permission.BLUETOOTH" />
|
||||
<uses-permission android:name="android.permission.BLUETOOTH_ADMIN" />
|
||||
|
||||
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user