aboutsummaryrefslogtreecommitdiffstats
path: root/src/main/java/eu/siacs
diff options
context:
space:
mode:
authorDaniel Gultsch <daniel@gultsch.de>2016-05-12 18:47:41 +0200
committerDaniel Gultsch <daniel@gultsch.de>2016-05-12 18:47:41 +0200
commit7113e21a433b04d82a161ea36625d3512a86f18a (patch)
treee3970c610017e2af77b4fc8e526e5ce798164a81 /src/main/java/eu/siacs
parent908aa19a36eaf80442da153cbac729d3fdb0aa31 (diff)
use 'phone' or 'tablet' as default resource
Diffstat (limited to 'src/main/java/eu/siacs')
-rw-r--r--src/main/java/eu/siacs/conversations/services/XmppConnectionService.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/eu/siacs/conversations/services/XmppConnectionService.java b/src/main/java/eu/siacs/conversations/services/XmppConnectionService.java
index 4a7a8d67..7301c7aa 100644
--- a/src/main/java/eu/siacs/conversations/services/XmppConnectionService.java
+++ b/src/main/java/eu/siacs/conversations/services/XmppConnectionService.java
@@ -851,7 +851,7 @@ public class XmppConnectionService extends Service implements OnPhoneContactsLoa
public XmppConnection createConnection(final Account account) {
final SharedPreferences sharedPref = getPreferences();
- account.setResource(sharedPref.getString("resource", "mobile")
+ account.setResource(sharedPref.getString("resource", getString(R.string.default_resource))
.toLowerCase(Locale.getDefault()));
final XmppConnection connection = new XmppConnection(account, this);
connection.setOnMessagePacketReceivedListener(this.mMessageParser);