add a Toast showing the reason why the auto-configuration failed

This commit is contained in:
cyberta
2021-11-04 11:35:41 +01:00
parent a21c039f4d
commit aab70f0f05
@@ -185,6 +185,11 @@ public class RegistrationActivity extends BaseActionBarActivity implements DcEve
emailInput.setText(emailAddress);
passwordInput.setText(password);
onLogin();
} else {
String errorText = "Companion app auto-configuration failed.";
errorText += TextUtils.isEmpty(emailAddress) ? " Missing emailAddress." : "";
errorText += TextUtils.isEmpty(password) ? " Missing password." : "";
Toast.makeText(this, errorText, Toast.LENGTH_LONG).show();
}
}