Merge "Add an Are you Sure to experiemental webview" into klp-dev

This commit is contained in:
Jonathan Dixon
2013-08-22 05:00:20 +00:00
committed by Android (Google) Code Review

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