Browse Source

Default port number

Fixes #130
main
M66B 5 years ago
parent
commit
b65e504098
2 changed files with 3 additions and 3 deletions
  1. +2
    -2
      app/src/main/java/eu/faircode/email/FragmentAccount.java
  2. +1
    -1
      app/src/main/java/eu/faircode/email/FragmentIdentity.java

+ 2
- 2
app/src/main/java/eu/faircode/email/FragmentAccount.java View File

@ -395,7 +395,7 @@ public class FragmentAccount extends FragmentEx {
if (TextUtils.isEmpty(host))
throw new Throwable(getContext().getString(R.string.title_no_host));
if (TextUtils.isEmpty(port))
throw new Throwable(getContext().getString(R.string.title_no_port));
port = "993";
if (TextUtils.isEmpty(user))
throw new Throwable(getContext().getString(R.string.title_no_user));
if (TextUtils.isEmpty(password))
@ -622,7 +622,7 @@ public class FragmentAccount extends FragmentEx {
if (TextUtils.isEmpty(host))
throw new Throwable(getContext().getString(R.string.title_no_host));
if (TextUtils.isEmpty(port))
throw new Throwable(getContext().getString(R.string.title_no_port));
port = "993";
if (TextUtils.isEmpty(user))
throw new Throwable(getContext().getString(R.string.title_no_user));
if (TextUtils.isEmpty(password))


+ 1
- 1
app/src/main/java/eu/faircode/email/FragmentIdentity.java View File

@ -324,7 +324,7 @@ public class FragmentIdentity extends FragmentEx {
if (TextUtils.isEmpty(host))
throw new IllegalArgumentException(getContext().getString(R.string.title_no_host));
if (TextUtils.isEmpty(port))
throw new IllegalArgumentException(getContext().getString(R.string.title_no_port));
port = "465";
if (TextUtils.isEmpty(user))
throw new IllegalArgumentException(getContext().getString(R.string.title_no_user));
if (TextUtils.isEmpty(password))


Loading…
Cancel
Save