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.os.Bundle;
|
||||||
import android.util.Patterns;
|
import android.util.Patterns;
|
||||||
import android.view.View;
|
import android.view.View;
|
||||||
import android.widget.Toast;
|
|
||||||
|
|
||||||
import androidx.appcompat.app.AppCompatActivity;
|
import androidx.appcompat.app.AppCompatActivity;
|
||||||
import androidx.databinding.DataBindingUtil;
|
import androidx.databinding.DataBindingUtil;
|
||||||
|
@ -114,8 +113,7 @@ public class AddAccountActivity extends AppCompatActivity {
|
||||||
finish();
|
finish();
|
||||||
} else {
|
} else {
|
||||||
binding.addAccountValidate.setEnabled(true);
|
binding.addAccountValidate.setEnabled(true);
|
||||||
Toast.makeText(AddAccountActivity.this, "Impossible to login",
|
Utils.showSnackbar(binding.addAccountRoot, getString(R.string.login_failed));
|
||||||
Toast.LENGTH_LONG).show();
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue