diff options
author | Christian Schneppe <christian@pix-art.de> | 2017-11-22 21:54:35 +0100 |
---|---|---|
committer | Christian Schneppe <christian@pix-art.de> | 2017-11-22 21:54:35 +0100 |
commit | 38756a4b393085827cdfb514f6d2429a5aeb87a2 (patch) | |
tree | 6b8aa919d33ca37f20c58d386c85140bb7841e77 /src/main/java/de/pixart | |
parent | ed28ad35493e8fc9444d8e05f904116385afaa66 (diff) |
use empty wake lock tag
Diffstat (limited to '')
-rw-r--r-- | src/main/java/de/pixart/messenger/xmpp/XmppConnection.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main/java/de/pixart/messenger/xmpp/XmppConnection.java b/src/main/java/de/pixart/messenger/xmpp/XmppConnection.java index 8bb75ab72..00a8d5008 100644 --- a/src/main/java/de/pixart/messenger/xmpp/XmppConnection.java +++ b/src/main/java/de/pixart/messenger/xmpp/XmppConnection.java @@ -229,8 +229,8 @@ public class XmppConnection implements Runnable { public XmppConnection(final Account account, final XmppConnectionService service) { this.account = account; - this.wakeLock = service.getPowerManager().newWakeLock( - PowerManager.PARTIAL_WAKE_LOCK, account.getJid().toBareJid().toString()); + final String tag = account.getJid().toBareJid().toPreppedString(); + this.wakeLock = service.getPowerManager().newWakeLock(PowerManager.PARTIAL_WAKE_LOCK, tag == null ? "[empty bare jid]" : tag); mXmppConnectionService = service; } |