diff options
author | Christian Schneppe <christian@pix-art.de> | 2017-10-29 20:30:14 +0100 |
---|---|---|
committer | Christian Schneppe <christian@pix-art.de> | 2017-10-29 20:30:14 +0100 |
commit | 92bc76d10f5058217864021ae1a097a5d6134f8b (patch) | |
tree | 55ebcf62bba297b3b1d6406c0ec26b6fe8083e0d /src/main/java/de/pixart/messenger/ui | |
parent | 58e0c013757450dded472c3034280fbb4f81d4db (diff) |
UpdateService: use THREAD_POOL_EXECUTOR
Diffstat (limited to 'src/main/java/de/pixart/messenger/ui')
-rw-r--r-- | src/main/java/de/pixart/messenger/ui/ConversationActivity.java | 2 | ||||
-rw-r--r-- | src/main/java/de/pixart/messenger/ui/XmppActivity.java | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/main/java/de/pixart/messenger/ui/ConversationActivity.java b/src/main/java/de/pixart/messenger/ui/ConversationActivity.java index 895ce5063..5126be565 100644 --- a/src/main/java/de/pixart/messenger/ui/ConversationActivity.java +++ b/src/main/java/de/pixart/messenger/ui/ConversationActivity.java @@ -391,7 +391,7 @@ public class ConversationActivity extends XmppActivity editor.commit(); Log.d(Config.LOGTAG, "AppUpdater: CurrentTime: " + lastUpdateTime); UpdateService task = new UpdateService(this); - task.execute("false"); + task.executeOnExecutor(UpdateService.THREAD_POOL_EXECUTOR, "false"); Log.d(Config.LOGTAG, "AppUpdater started"); } else { Log.d(Config.LOGTAG, "AppUpdater stopped"); diff --git a/src/main/java/de/pixart/messenger/ui/XmppActivity.java b/src/main/java/de/pixart/messenger/ui/XmppActivity.java index 840e29692..23b8a16f5 100644 --- a/src/main/java/de/pixart/messenger/ui/XmppActivity.java +++ b/src/main/java/de/pixart/messenger/ui/XmppActivity.java @@ -379,7 +379,7 @@ public abstract class XmppActivity extends Activity { case R.id.action_check_updates: if (xmppConnectionService.hasInternetConnection()) { UpdateService task = new UpdateService(this); - task.execute("true"); + task.executeOnExecutor(UpdateService.THREAD_POOL_EXECUTOR, "true"); } else { Toast.makeText(this, R.string.account_status_no_internet, Toast.LENGTH_LONG).show(); } |