Commit b6d72728 authored by finnur's avatar finnur Committed by Commit bot

Make sure the soft-keyboard shows up in the Add Exception dialog.

BUG=472557

Review URL: https://codereview.chromium.org/1175723002

Cr-Commit-Position: refs/heads/master@{#333615}
parent f57a948e
......@@ -25,6 +25,7 @@ import android.widget.TextView;
import org.chromium.base.ApiCompatibilityUtils;
import org.chromium.chrome.R;
import org.chromium.ui.UiUtils;
/**
* A utility class for the UI recording exceptions to the blocked list for site
......@@ -115,7 +116,14 @@ public class AddExceptionPreference extends Preference implements OnPreferenceCl
.setView(view)
.setPositiveButton(R.string.website_settings_add_site_add_button, onClickListener)
.setNegativeButton(R.string.cancel, onClickListener)
.show();
.create();
alertDialog.setOnShowListener(new DialogInterface.OnShowListener() {
@Override
public void onShow(DialogInterface dialog) {
UiUtils.showKeyboard(input);
}
});
alertDialog.show();
final Button okButton = alertDialog.getButton(AlertDialog.BUTTON_POSITIVE);
okButton.setEnabled(false);
......
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