Fixed (I hope) crash during server restart reported during testing, plus minor UI errors corrections.
This commit is contained in:
BIN
app/release/app-release-3.6.1j.apk
Normal file
BIN
app/release/app-release-3.6.1j.apk
Normal file
Binary file not shown.
Binary file not shown.
@@ -11,8 +11,8 @@
|
||||
"type": "SINGLE",
|
||||
"filters": [],
|
||||
"properties": [],
|
||||
"versionCode": 81,
|
||||
"versionName": "3.6.1h",
|
||||
"versionCode": 82,
|
||||
"versionName": "3.6.1j",
|
||||
"enabled": true,
|
||||
"outputFile": "app-release.apk"
|
||||
}
|
||||
|
||||
@@ -2,8 +2,8 @@
|
||||
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:tools="http://schemas.android.com/tools"
|
||||
package="uk.org.openseizuredetector"
|
||||
android:versionCode="81"
|
||||
android:versionName="3.6.1h">
|
||||
android:versionCode="82"
|
||||
android:versionName="3.6.1j">
|
||||
<!-- android:allowBackup="false" -->
|
||||
<uses-permission android:name="android.permission.BLUETOOTH" />
|
||||
<uses-permission android:name="android.permission.BLUETOOTH_ADMIN" />
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
package uk.org.openseizuredetector;
|
||||
|
||||
|
||||
/**
|
||||
*/
|
||||
|
||||
@@ -43,8 +44,9 @@ public class LocationFinder implements LocationListener
|
||||
|
||||
public void destroy() {
|
||||
// Cancel location updates
|
||||
mLocationManager.removeUpdates(this);
|
||||
|
||||
if (mLocationManager != null) {
|
||||
mLocationManager.removeUpdates(this);
|
||||
}
|
||||
// cancel the timeout timer
|
||||
if (mTimeoutTimer != null) {
|
||||
mTimeoutTimer.cancel();
|
||||
|
||||
@@ -594,7 +594,7 @@ public class MainActivity extends AppCompatActivity {
|
||||
tv.setTextColor(warnTextColour);
|
||||
|
||||
tv = (TextView) findViewById(R.id.appTv);
|
||||
tv.setText(R.string.WatchApp+" ----");
|
||||
tv.setText(getString(R.string.WatchApp)+" ----");
|
||||
tv.setBackgroundColor(warnColour);
|
||||
tv.setTextColor(warnTextColour);
|
||||
|
||||
|
||||
@@ -388,6 +388,7 @@ public class SdServer extends Service implements SdDataReceiver {
|
||||
// Stop the location finder.
|
||||
if (mLocationFinder != null) {
|
||||
mLocationFinder.destroy();
|
||||
mLocationFinder = null;
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -109,7 +109,7 @@
|
||||
<string name="no_wifi_connection">Network State Changed - no Wifi Connection</string>
|
||||
<string name="no_active_network">Network State Changed - No Active Network</string>
|
||||
<string name="problem_parsing_preferences">Problem Parsing Preferences - Something won\'t work - Please go back to Settings and correct it!</string>
|
||||
<string name="send_sms_last_location">\"Send SMS - last location is \"</string>
|
||||
<string name="send_sms_last_location">"Send SMS - last location is "</string>
|
||||
<string name="failed_to_send_sms">ERROR: FAILED TO SEND SMS MESSAGE</string>
|
||||
<string name="sms_alarms_disabled">SMS Alarms Disabled - not doing anything!</string>
|
||||
</resources>
|
||||
|
||||
Binary file not shown.
@@ -42,7 +42,7 @@
|
||||
<string name="Mute">Stäng av</string>
|
||||
<string name="Alarm">**LARM**</string>
|
||||
<string name="Fall">**FALL**</string>
|
||||
<string name="HR_Equals">\"Puls = \"</string>
|
||||
<string name="HR_Equals">"Puls = "</string>
|
||||
<string name="HRAlarmOff">Pulslarm Av</string>
|
||||
<string name="WatchAppOK">Smartklocka app OK</string>
|
||||
<string name="WatchAppNotRunning">Smartklocka app AV</string>
|
||||
@@ -123,7 +123,7 @@
|
||||
<string name="no_wifi_connection">Nätverksstatus ändrad - ingen uppkoppling</string>
|
||||
<string name="no_active_network">Nätverksstatus ändrad - inga aktiva nätverk</string>
|
||||
<string name="problem_parsing_preferences">Något gick fel! Problem med inställningarna - justera dessa.</string>
|
||||
<string name="send_sms_last_location">\"Sänd SMS - senast kända plats är \"</string>
|
||||
<string name="send_sms_last_location">"Sänd SMS - senast kända plats är "</string>
|
||||
<string name="failed_to_send_sms">ERROR: SMS ej sänt</string>
|
||||
<string name="sms_alarms_disabled">SMS-larm avstängt- ingen åtgärd!</string>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user