mirror of
https://github.com/ArcaneChat/android.git
synced 2026-07-03 14:05:24 +02:00
add a Toast showing the reason why the auto-configuration failed
This commit is contained in:
@@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user