Browse Source

Use default SSL setting in case local SSL setting is not yet set (for migration purposes).

pull/465/head
Eric Kok 6 years ago
parent
commit
0b95fb1544
  1. 2
      app/src/main/java/org/transdroid/core/app/settings/ApplicationSettings.java

2
app/src/main/java/org/transdroid/core/app/settings/ApplicationSettings.java

@ -146,7 +146,7 @@ public class ApplicationSettings {
// @formatter:off // @formatter:off
Daemon type = Daemon.fromCode(prefs.getString("server_type_" + order, null)); Daemon type = Daemon.fromCode(prefs.getString("server_type_" + order, null));
boolean ssl = prefs.getBoolean("server_sslenabled_" + order, false); boolean ssl = prefs.getBoolean("server_sslenabled_" + order, false);
boolean localSsl = prefs.getBoolean("server_localsslenabled_" + order, false); boolean localSsl = prefs.getBoolean("server_localsslenabled_" + order, ssl);
String port = prefs.getString("server_port_" + order, null); String port = prefs.getString("server_port_" + order, null);
if (TextUtils.isEmpty(port)) if (TextUtils.isEmpty(port))

Loading…
Cancel
Save