mirror of https://github.com/readrops/Readrops.git
Fix login failed flow using a toast instead of a snackbar
This commit is contained in:
parent
f6c9a9774f
commit
aaee34f5de
|
@ -4,7 +4,6 @@ import android.content.Intent;
|
|||
import android.os.Bundle;
|
||||
import android.util.Patterns;
|
||||
import android.view.View;
|
||||
import android.widget.Toast;
|
||||
|
||||
import androidx.appcompat.app.AppCompatActivity;
|
||||
import androidx.databinding.DataBindingUtil;
|
||||
|
@ -114,8 +113,7 @@ public class AddAccountActivity extends AppCompatActivity {
|
|||
finish();
|
||||
} else {
|
||||
binding.addAccountValidate.setEnabled(true);
|
||||
Toast.makeText(AddAccountActivity.this, "Impossible to login",
|
||||
Toast.LENGTH_LONG).show();
|
||||
Utils.showSnackbar(binding.addAccountRoot, getString(R.string.login_failed));
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue