diff options
author | Christian Schneppe <christian@pix-art.de> | 2016-07-02 13:11:29 +0200 |
---|---|---|
committer | Christian Schneppe <christian@pix-art.de> | 2016-07-02 13:11:29 +0200 |
commit | 165a00c6172f38025386b61692324b58eed0b046 (patch) | |
tree | f9a86ce0c931c12acdfe3945d534e9153fedccba /src/main/java/eu/siacs/conversations/services/UpdaterWebService.java | |
parent | f14380ca53948784d3c8397d8eee882742fc1520 (diff) |
some little updater changes and code cleanup
Diffstat (limited to '')
-rw-r--r-- | src/main/java/eu/siacs/conversations/services/UpdaterWebService.java | 7 |
1 files changed, 2 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 d7044d73a..dbeaee2b8 100644 --- a/src/main/java/eu/siacs/conversations/services/UpdaterWebService.java +++ b/src/main/java/eu/siacs/conversations/services/UpdaterWebService.java @@ -29,8 +29,8 @@ public class UpdaterWebService extends IntentService { public static final String RESPONSE_MESSAGE = ""; private String URL = null; - public static final int REGISTRATION_TIMEOUT = 3 * 1000; - public static final int WAIT_TIMEOUT = 30 * 1000; + public static final int REGISTRATION_TIMEOUT = Config.SOCKET_TIMEOUT; + public static final int WAIT_TIMEOUT = Config.CONNECT_TIMEOUT; public UpdaterWebService() { super("UpdaterWebService"); @@ -89,14 +89,11 @@ public class UpdaterWebService extends IntentService { responseMessage = ""; } - Intent broadcastIntent = new Intent(); broadcastIntent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK); broadcastIntent.setAction(UpdateReceiver.PROCESS_RESPONSE); broadcastIntent.addCategory(Intent.CATEGORY_DEFAULT); broadcastIntent.putExtra(RESPONSE_MESSAGE, responseMessage); sendBroadcast(broadcastIntent); - } - }
\ No newline at end of file |