am f3267d9f
: Merge "Add an Are you Sure to experiemental webview" into klp-dev
* commit 'f3267d9fee8f2dd675d66b00a566da06717f8664': Add an Are you Sure to experiemental webview
This commit is contained in:
@@ -1135,6 +1135,14 @@ public class DevelopmentSettings extends RestrictedSettingsFragment
|
|||||||
|
|
||||||
private void writeExperimentalWebViewOptions() {
|
private void writeExperimentalWebViewOptions() {
|
||||||
if (mExperimentalWebView != null) {
|
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());
|
WebViewFactory.setUseExperimentalWebView(mExperimentalWebView.isChecked());
|
||||||
pokeSystemProperties();
|
pokeSystemProperties();
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user