alarm ignores network
This commit is contained in:
Binary file not shown.
@@ -7,8 +7,8 @@ android {
|
|||||||
applicationId "com.zoblak.farm"
|
applicationId "com.zoblak.farm"
|
||||||
minSdkVersion 15
|
minSdkVersion 15
|
||||||
targetSdkVersion 24
|
targetSdkVersion 24
|
||||||
versionCode 1
|
versionCode 101
|
||||||
versionName "1.0"
|
versionName "1.0.1"
|
||||||
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
|
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
|
||||||
vectorDrawables.useSupportLibrary = true
|
vectorDrawables.useSupportLibrary = true
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -67,8 +67,8 @@ public class ZoblakClient {
|
|||||||
Log.e("zoblakClient", "malformed: " + e.getLocalizedMessage());
|
Log.e("zoblakClient", "malformed: " + e.getLocalizedMessage());
|
||||||
} catch (IOException e) {
|
} catch (IOException e) {
|
||||||
Log.e("zoblakClient", "ioexception: " + e.getLocalizedMessage());
|
Log.e("zoblakClient", "ioexception: " + e.getLocalizedMessage());
|
||||||
result.setAlarmTriggered(true);
|
result.setAlarmTriggered(false);
|
||||||
result.setServerError(true);
|
result.setServerError(false);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (urlConnection != null) urlConnection.disconnect();
|
if (urlConnection != null) urlConnection.disconnect();
|
||||||
|
|||||||
Reference in New Issue
Block a user