Commit 6904728d authored by luca020400's avatar luca020400

Jelly: Allow to dismiss HTTP auth dialog

Change-Id: Id9cb063366fd8153a52e600243a124e1f9a2bc95
parent c42034e2
......@@ -105,13 +105,13 @@ class WebClient extends WebViewClient {
String text = context.getString(R.string.auth_dialog_detail, view.getUrl());
auth_detail.setText(text);
builder.setView(dialogView)
.setCancelable(false)
.setTitle(R.string.auth_dialog_title)
.setPositiveButton(R.string.auth_dialog_login,
(dialog, whichButton) -> handler.proceed(
username.getText().toString(), password.getText().toString()))
.setNegativeButton(android.R.string.cancel,
(dialog, whichButton) -> handler.cancel())
.setOnDismissListener(dialog -> handler.cancel())
.show();
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment