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:
Jonathan Dixon
2013-08-21 17:21:27 -07:00
parent e873aeb3a6
commit ba0ef659e1

View File

@@ -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();
}