Fix unknown location

This commit is contained in:
Mieszko Wrzeszczyński 2018-12-05 09:59:18 +01:00
parent 5fc5140866
commit b2e5a0e0c5
4 changed files with 6 additions and 3 deletions

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);
}