然后在下面的图像链接2中显示“连接超时,请检查您的网络连接”
但是,尽管它正在连接到Firebase并向输入的电子邮件ID发送密码重置链接。
这里是我与上述问题相关的代码 LoginActivity.java
private void openDialog() {
LayoutInflater inflater = LayoutInflater.from(LoginActivity.this);
View subView = inflater.inflate(R.layout.alert_forgot_pwd, null);
final EditText email_id = (EditText) subView.findViewById(R.id.ed_forgot_pwd);
final Button btnSubmit = (Button) subView.findViewById(R.id.btn_forgot_pwd);
AlertDialog.Builder builder = new AlertDialog.Builder(this);
builder.setTitle("Forgot Password ?");
builder.setView(subView);
alertDialog = builder.create();
btnSubmit.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
if (email_id.getText().toString().equals("")) {
email_id.setError("Please enter registered email id");
} else {
if (appState.getNetworkCheck()) {
checkEmail(email_id.getText().toString());
} else {
Toast.makeText(LoginActivity.this, getResources().getString(R.string.plz_check_network_connection), Toast.LENGTH_SHORT).show();
}
}
}
});
builder.show();
}
AppController.java
public boolean getNetworkCheck() {
return networkCheck;
}