aboutsummaryrefslogtreecommitdiffstats
path: root/src/main/java
diff options
context:
space:
mode:
authorChristian Schneppe <christian@pix-art.de>2018-08-04 00:26:37 +0200
committerChristian Schneppe <christian@pix-art.de>2018-08-04 00:26:37 +0200
commit2df6517e8d2ee026e69ec5ec56bd92bd28e9d017 (patch)
tree0ab274158ce4fed1cc29a4b62afc5278886fc897 /src/main/java
parent16f2aad5973163e7d473153af282f5fa5783ec36 (diff)
use blabber.im as default domain
Diffstat (limited to 'src/main/java')
-rw-r--r--src/main/java/de/pixart/messenger/Config.java2
-rw-r--r--src/main/java/de/pixart/messenger/ui/MagicCreateActivity.java2
2 files changed, 3 insertions, 1 deletions
diff --git a/src/main/java/de/pixart/messenger/Config.java b/src/main/java/de/pixart/messenger/Config.java
index 0af8e09ea..e3b60e664 100644
--- a/src/main/java/de/pixart/messenger/Config.java
+++ b/src/main/java/de/pixart/messenger/Config.java
@@ -50,7 +50,7 @@ public final class Config {
public static final String XMPP_IP = null; //BuildConfig.XMPP_IP; // set to null means disable
public static final Integer[] XMPP_Ports = null; //BuildConfig.XMPP_Ports; // set to null means disable
public static final String DOMAIN_LOCK = null; //BuildConfig.DOMAIN_LOCK; //only allow account creation for this domain
- public static final String MAGIC_CREATE_DOMAIN = "jabber.de";
+ public static final String MAGIC_CREATE_DOMAIN = "blabber.de";
public static final boolean DISALLOW_REGISTRATION_IN_UI = false; //hide the register checkbox
public static final boolean USE_RANDOM_RESOURCE_ON_EVERY_BIND = false;
diff --git a/src/main/java/de/pixart/messenger/ui/MagicCreateActivity.java b/src/main/java/de/pixart/messenger/ui/MagicCreateActivity.java
index 76dc84499..b8f11be12 100644
--- a/src/main/java/de/pixart/messenger/ui/MagicCreateActivity.java
+++ b/src/main/java/de/pixart/messenger/ui/MagicCreateActivity.java
@@ -67,9 +67,11 @@ public class MagicCreateActivity extends XmppActivity implements TextWatcher, Ad
final List<String> domains = Arrays.asList(getResources().getStringArray(R.array.domains));
Collections.sort(domains, String::compareToIgnoreCase);
final ArrayAdapter<String> adapter = new ArrayAdapter<>(this, android.R.layout.simple_selectable_list_item, domains);
+ int defaultServer = adapter.getPosition("blabber.im");
mUsername = findViewById(R.id.username);
mServer = findViewById(R.id.server);
mServer.setAdapter(adapter);
+ mServer.setSelection(defaultServer);
mServer.setOnItemSelectedListener(this);
adapter.setDropDownViewResource(android.R.layout.select_dialog_singlechoice);
mRandom = new SecureRandom();