Add an Are you Sure to experiemental webview
Bug: 10427705 Not bothering to translate strings as this will be deleted soon Change-Id: I26721e606649d267d1b6507bc1a16ce91a63276a
This commit is contained in:
@@ -1135,6 +1135,14 @@ public class DevelopmentSettings extends RestrictedSettingsFragment
|
||||
|
||||
private void writeExperimentalWebViewOptions() {
|
||||
if (mExperimentalWebView != null) {
|
||||
if (!WebViewFactory.isUseExperimentalWebViewSet()) {
|
||||
mEnableDialog = new AlertDialog.Builder(getActivity())
|
||||
.setTitle("KLP WebView broke an app?")
|
||||
.setMessage("Don't forget to raise a bug!\ngo/klp-webview-bug")
|
||||
.setIconAttribute(android.R.attr.alertDialogIcon)
|
||||
.setPositiveButton(android.R.string.ok, this)
|
||||
.show();
|
||||
}
|
||||
WebViewFactory.setUseExperimentalWebView(mExperimentalWebView.isChecked());
|
||||
pokeSystemProperties();
|
||||
}
|
||||
|
Reference in New Issue
Block a user