aboutsummaryrefslogtreecommitdiffstats
path: root/src/main/java/eu/siacs/conversations/services/UpdaterWebService.java
diff options
context:
space:
mode:
authorChristian S <christian@pix-art.de>2016-04-23 19:08:08 +0200
committerChristian S <christian@pix-art.de>2016-04-23 19:11:11 +0200
commitd0aef46126dd70c73686dc141d3c027bc47e3816 (patch)
tree76781579f90bc03b3a24f2908e2e7df6cd44bb20 /src/main/java/eu/siacs/conversations/services/UpdaterWebService.java
parent97173fd512bd3948f6bfd9b27ae7d103d50a4ee9 (diff)
changed updater a bit
Diffstat (limited to 'src/main/java/eu/siacs/conversations/services/UpdaterWebService.java')
-rw-r--r--src/main/java/eu/siacs/conversations/services/UpdaterWebService.java9
1 files changed, 4 insertions, 5 deletions
diff --git a/src/main/java/eu/siacs/conversations/services/UpdaterWebService.java b/src/main/java/eu/siacs/conversations/services/UpdaterWebService.java
index cb58b49eb..d7044d73a 100644
--- a/src/main/java/eu/siacs/conversations/services/UpdaterWebService.java
+++ b/src/main/java/eu/siacs/conversations/services/UpdaterWebService.java
@@ -24,7 +24,7 @@ import eu.siacs.conversations.Config;
import eu.siacs.conversations.R;
import eu.siacs.conversations.ui.UpdaterActivity.UpdateReceiver;
-public class UpdaterWebService extends IntentService{
+public class UpdaterWebService extends IntentService {
public static final String REQUEST_STRING = "";
public static final String RESPONSE_MESSAGE = "";
@@ -45,8 +45,7 @@ public class UpdaterWebService extends IntentService{
PackageInfo pInfo = null;
try {
pInfo = getPackageManager().getPackageInfo(getPackageName(), 0);
- }
- catch (PackageManager.NameNotFoundException e) {
+ } catch (PackageManager.NameNotFoundException e) {
e.printStackTrace();
}
//get the app version Name for display
@@ -68,7 +67,7 @@ public class UpdaterWebService extends IntentService{
StatusLine statusLine = response.getStatusLine();
Log.d(Config.LOGTAG, "AppUpdater: HTTP Status Code: " + statusLine.getStatusCode());
- if(statusLine.getStatusCode() == HttpStatus.SC_OK){
+ if (statusLine.getStatusCode() == HttpStatus.SC_OK) {
ByteArrayOutputStream out = new ByteArrayOutputStream();
response.getEntity().writeTo(out);
out.close();
@@ -85,7 +84,7 @@ public class UpdaterWebService extends IntentService{
} catch (IOException e) {
Log.e(Config.LOGTAG, "AppUpdater: HTTP3:" + e);
responseMessage = "";
- }catch (Exception e) {
+ } catch (Exception e) {
Log.e(Config.LOGTAG, "AppUpdater: HTTP4:" + e);
responseMessage = "";
}