CB-9158 - InAppBrowser zoomControls are always set to true
This commit is contained in:
parent
cb1c6b4d24
commit
74aa099b7e
@ -91,9 +91,9 @@ public class InAppBrowser extends CordovaPlugin {
|
|||||||
private boolean showLocationBar = true;
|
private boolean showLocationBar = true;
|
||||||
private boolean showZoomControls = true;
|
private boolean showZoomControls = true;
|
||||||
private boolean openWindowHidden = false;
|
private boolean openWindowHidden = false;
|
||||||
private boolean clearAllCache= false;
|
private boolean clearAllCache = false;
|
||||||
private boolean clearSessionCache=false;
|
private boolean clearSessionCache = false;
|
||||||
private boolean hadwareBackButton=true;
|
private boolean hadwareBackButton = true;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Executes the request and returns PluginResult.
|
* Executes the request and returns PluginResult.
|
||||||
@ -455,15 +455,6 @@ public class InAppBrowser extends CordovaPlugin {
|
|||||||
return this.showLocationBar;
|
return this.showLocationBar;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* Should we show the zoom controls?
|
|
||||||
*
|
|
||||||
* @return boolean
|
|
||||||
*/
|
|
||||||
private boolean getShowZoomControls() {
|
|
||||||
return this.showZoomControls;
|
|
||||||
}
|
|
||||||
|
|
||||||
private InAppBrowser getInAppBrowser(){
|
private InAppBrowser getInAppBrowser(){
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
@ -656,7 +647,7 @@ public class InAppBrowser extends CordovaPlugin {
|
|||||||
WebSettings settings = inAppWebView.getSettings();
|
WebSettings settings = inAppWebView.getSettings();
|
||||||
settings.setJavaScriptEnabled(true);
|
settings.setJavaScriptEnabled(true);
|
||||||
settings.setJavaScriptCanOpenWindowsAutomatically(true);
|
settings.setJavaScriptCanOpenWindowsAutomatically(true);
|
||||||
settings.setBuiltInZoomControls(getShowZoomControls());
|
settings.setBuiltInZoomControls(showZoomControls);
|
||||||
settings.setPluginState(android.webkit.WebSettings.PluginState.ON);
|
settings.setPluginState(android.webkit.WebSettings.PluginState.ON);
|
||||||
|
|
||||||
//Toggle whether this is enabled or not!
|
//Toggle whether this is enabled or not!
|
||||||
|
Loading…
x
Reference in New Issue
Block a user