alarm ignores network

This commit is contained in:
Senad Uka
2016-12-30 16:29:52 +01:00
parent 3eae1c71b7
commit f579dabbcb
3 changed files with 4 additions and 4 deletions

View File

@@ -7,8 +7,8 @@ android {
applicationId "com.zoblak.farm"
minSdkVersion 15
targetSdkVersion 24
versionCode 1
versionName "1.0"
versionCode 101
versionName "1.0.1"
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
vectorDrawables.useSupportLibrary = true
}

View File

@@ -67,8 +67,8 @@ public class ZoblakClient {
Log.e("zoblakClient", "malformed: " + e.getLocalizedMessage());
} catch (IOException e) {
Log.e("zoblakClient", "ioexception: " + e.getLocalizedMessage());
result.setAlarmTriggered(true);
result.setServerError(true);
result.setAlarmTriggered(false);
result.setServerError(false);
}
if (urlConnection != null) urlConnection.disconnect();