Fix presence mode #62

Merged
s416204 merged 2 commits from develop into master 2018-12-05 10:04:21 +01:00
4 changed files with 6 additions and 3 deletions
Showing only changes of commit fc4f49c3e0 - Show all commits

View File

@ -10,7 +10,7 @@ android {
applicationId "com.uam.wmi.findmytutor"
minSdkVersion 22
targetSdkVersion 27
versionCode 8
versionCode 12
versionName "0.9.1-alpha"
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
vectorDrawables.useSupportLibrary = true

Binary file not shown.

View File

@ -344,6 +344,9 @@ public class BackgroundLocalizationService extends Service {
locationLevel
);
Log.e(TAG, String.valueOf(coordinate));
disposable.add(
coordinateService
.postCoordinate(coordinate)
@ -365,6 +368,7 @@ public class BackgroundLocalizationService extends Service {
if (e instanceof HttpException) {
ResponseBody responseBody = ((HttpException) e).response().errorBody();
Log.e("CoordinateService onError", RestApiHelper.getErrorMessage(responseBody));
Log.e("CoordinateService onError", e.toString());
}
}

View File

@ -7,8 +7,7 @@ public class Consts {
public final static Integer searchMapZoom = 13;
public final static Double presenceLatitude = 52.466365;
public final static Double presenceLongitude = 16.926792;
public final static String presenceApproximatedName = "unknown";
public final static String presenceApproximatedName = "Unknown";
public final static Range<Double> latitudeRange = Range.create(52.466709, 52.467007);
public final static Range<Double> longtitudeRange = Range.create(16.926159, 16.926976);
}