Skip to content

Commit 258f32e

Browse files
Romain GuyAndroid Code Review
authored andcommitted
Merge "Disable plugins if setPluginsEnabled(false) called."
2 parents 9406251 + 29086e4 commit 258f32e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

core/java/android/webkit/WebSettings.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1052,7 +1052,7 @@ public synchronized void setJavaScriptEnabled(boolean flag) {
10521052
*/
10531053
@Deprecated
10541054
public synchronized void setPluginsEnabled(boolean flag) {
1055-
setPluginState(PluginState.ON);
1055+
setPluginState(flag ? PluginState.ON : PluginState.OFF);
10561056
}
10571057

10581058
/**

0 commit comments

Comments
 (0)