diff --git a/build.gradle b/build.gradle
index 3669126e7..83257dcda 100644
--- a/build.gradle
+++ b/build.gradle
@@ -50,8 +50,8 @@ ext {
compileSdkVersion = 28
targetSdkVersion = 28
buildToolsVersion = '28.0.3'
- versionCode = 44
- versionName = "1.1.4"
+ versionCode = 45
+ versionName = "1.1.5"
javaCompileVersion = JavaVersion.VERSION_1_8
diff --git a/org.envirocar.app/AndroidManifest.xml b/org.envirocar.app/AndroidManifest.xml
index de8e0bd88..2c1a1ef9e 100644
--- a/org.envirocar.app/AndroidManifest.xml
+++ b/org.envirocar.app/AndroidManifest.xml
@@ -3,8 +3,8 @@
xmlns:tools="http://schemas.android.com/tools"
package="org.envirocar.app"
android:installLocation="internalOnly"
- android:versionCode="44"
- android:versionName="1.1.4">
+ android:versionCode="45"
+ android:versionName="1.1.5">
diff --git a/org.envirocar.app/res/drawable/ic_error_red_24dp.xml b/org.envirocar.app/res/drawable/ic_error_red_24dp.xml
new file mode 100644
index 000000000..e1569395b
--- /dev/null
+++ b/org.envirocar.app/res/drawable/ic_error_red_24dp.xml
@@ -0,0 +1,5 @@
+
+
+
diff --git a/org.envirocar.app/res/values/strings_activity_login.xml b/org.envirocar.app/res/values/strings_activity_login.xml
index 079e5ec80..361ff8c40 100644
--- a/org.envirocar.app/res/values/strings_activity_login.xml
+++ b/org.envirocar.app/res/values/strings_activity_login.xml
@@ -29,6 +29,7 @@
Registering…
The passwords do not match.
This username is too short.
+ Special symbol not allowed except underscore
Password must contain at least one uppercase letter, one lowercase letter and one digit
This username is already in use.
diff --git a/org.envirocar.app/src/org/envirocar/app/recording/strategy/OBDRecordingStrategy.java b/org.envirocar.app/src/org/envirocar/app/recording/strategy/OBDRecordingStrategy.java
index 36f1cc334..524b7a101 100644
--- a/org.envirocar.app/src/org/envirocar/app/recording/strategy/OBDRecordingStrategy.java
+++ b/org.envirocar.app/src/org/envirocar/app/recording/strategy/OBDRecordingStrategy.java
@@ -1,18 +1,18 @@
/**
* Copyright (C) 2013 - 2019 the enviroCar community
- *
+ *
* This file is part of the enviroCar app.
- *
+ *
* The enviroCar app is free software: you can redistribute it and/or
* modify it under the terms of the GNU General Public License as published
* by the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
- *
+ *
* The enviroCar app is distributed in the hope that it will be useful, but
* WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General
* Public License for more details.
- *
+ *
* You should have received a copy of the GNU General Public License along
* with the enviroCar app. If not, see http://www.gnu.org/licenses/.
*/
@@ -95,6 +95,7 @@ public class OBDRecordingStrategy implements RecordingStrategy {
private LoadBasedEnergyConsumptionAlgorithm energyConsumptionAlgorithm;
private boolean isRecording = false;
+ private boolean isTrackFinished = false;
private Track track = null;
/**
@@ -134,6 +135,7 @@ protected void onDestroy() {
@Override
public void startRecording(Service service, RecordingListener listener) {
this.listener = listener;
+ this.isTrackFinished = false;
disposables.add(
obdConnectionHandler.getOBDConnectionObservable(bluetoothHandler.getSelectedBluetoothDevice())
@@ -172,9 +174,7 @@ public void stopRecording() {
isRecording = false;
}
listener.onRecordingStateChanged(RecordingState.RECORDING_STOPPED);
- if (track != null){
- listener.onTrackFinished(track);
- }
+ notifyTrackFinished(track);
}
private DisposableObserver