V3.1.5 - fixed bug that crashed main activity screen when server was shutdown (introduced in 3.1.3)
This commit is contained in:
@@ -4,6 +4,9 @@
|
||||
V3.2.0 - (NEXT VERSION!)
|
||||
- Added neural network based data analysis.
|
||||
|
||||
V3.1.5 - 27apr2919
|
||||
- Fixed crash of MainActivity when server shutdown.
|
||||
|
||||
V3.1.4 - 25apr2019
|
||||
- Added a periodic 'Beep' during the SMS timer to alert the user that an SMS is about to be sent.
|
||||
|
||||
|
||||
BIN
app/release/app-release-3.1.5.apk
Normal file
BIN
app/release/app-release-3.1.5.apk
Normal file
Binary file not shown.
@@ -1 +1 @@
|
||||
[{"outputType":{"type":"APK"},"apkData":{"type":"MAIN","splits":[],"versionCode":58,"versionName":"3.1.4","enabled":true,"outputFile":"app-release.apk","fullName":"release","baseName":"release"},"path":"app-release.apk","properties":{}}]
|
||||
[{"outputType":{"type":"APK"},"apkData":{"type":"MAIN","splits":[],"versionCode":59,"versionName":"3.1.5","enabled":true,"outputFile":"app-release.apk","fullName":"release","baseName":"release"},"path":"app-release.apk","properties":{}}]
|
||||
@@ -1,8 +1,8 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
package="uk.org.openseizuredetector"
|
||||
android:versionCode="58"
|
||||
android:versionName="3.1.4"
|
||||
android:versionCode="59"
|
||||
android:versionName="3.1.5"
|
||||
>
|
||||
<!--android:allowBackup="false"-->
|
||||
|
||||
|
||||
@@ -534,7 +534,6 @@ public class MainActivity extends AppCompatActivity {
|
||||
pb.setProgressDrawable(pbDrawable);
|
||||
|
||||
|
||||
|
||||
// Fault Conditions - We override the values in the UI because we do not know
|
||||
// if the stored ones are correct or not with a fault present.
|
||||
if ((mConnection.mSdServer.mSdData.alarmState == 4) ||
|
||||
@@ -614,6 +613,7 @@ public class MainActivity extends AppCompatActivity {
|
||||
// deal with latch alarms button
|
||||
Button acceptAlarmButton = (Button) findViewById(R.id.acceptAlarmButton);
|
||||
|
||||
if (mConnection.mBound) {
|
||||
if ((mConnection.mSdServer.mSmsTimer != null)
|
||||
&& (mConnection.mSdServer.mSmsTimer.mTimeLeft > 0)) {
|
||||
acceptAlarmButton.setText("SMS Will Be Sent in " +
|
||||
@@ -621,7 +621,6 @@ public class MainActivity extends AppCompatActivity {
|
||||
" s - CANCEL?");
|
||||
acceptAlarmButton.setBackgroundColor(alarmColour);
|
||||
acceptAlarmButton.setEnabled(true);
|
||||
|
||||
} else {
|
||||
acceptAlarmButton.setText("Accept Alarm");
|
||||
acceptAlarmButton.setBackgroundColor(Color.DKGRAY);
|
||||
@@ -633,6 +632,11 @@ public class MainActivity extends AppCompatActivity {
|
||||
acceptAlarmButton.setEnabled(false);
|
||||
}
|
||||
}
|
||||
} else {
|
||||
acceptAlarmButton.setText("Accept Alarm");
|
||||
acceptAlarmButton.setBackgroundColor(Color.DKGRAY);
|
||||
acceptAlarmButton.setEnabled(false);
|
||||
}
|
||||
|
||||
// Deal with Cancel Audible button
|
||||
Button cancelAudibleButton =
|
||||
|
||||
@@ -503,7 +503,7 @@ public class StartupActivity extends Activity {
|
||||
+ "\n\nChanges in this version:"
|
||||
+ "\n- V3.1.0 - Added fall detection algorithm into Garmin/Fitbit Data Source "
|
||||
+ "\n V3.1.3 - Added delay to SMS sending to give the user chance to cancel a false alarm."
|
||||
+ "\n V3.1.4 - Added repeat alarm beeps during SMS delay to alert user.."
|
||||
+ "\n V3.1.5 - Added repeat alarm beeps during SMS delay to alert user.."
|
||||
);
|
||||
// This makes the links display as links, but they do not respond to clicks for some reason...
|
||||
Linkify.addLinks(s, Linkify.ALL);
|
||||
@@ -535,7 +535,7 @@ public class StartupActivity extends Activity {
|
||||
+ "\n\nChanges in this version:"
|
||||
+ "\n- V3.1.0 - Added fall detection algorithm into Garmin/Fitbit Data Source "
|
||||
+ "\n V3.1.3 - Added delay to SMS sending to give the user chance to cancel a false alarm."
|
||||
+ "\n V3.1.4 - Added repeat alarm beeps during SMS delay to alert user.."
|
||||
+ "\n V3.1.5 - Added repeat alarm beeps during SMS delay to alert user.."
|
||||
+ "\n "
|
||||
);
|
||||
// This makes the links display as links, but they do not respond to clicks for some reason...
|
||||
|
||||
Reference in New Issue
Block a user