mirror of
https://github.com/apache/cordova-android.git
synced 2025-02-22 00:32:55 +08:00
Merge branch 'master' of https://git-wip-us.apache.org/repos/asf/incubator-cordova-android
This commit is contained in:
commit
8512ebb923
@ -734,7 +734,7 @@ public class CordovaWebView extends WebView {
|
|||||||
{
|
{
|
||||||
//Switch back to the old browser history and state the six month policy
|
//Switch back to the old browser history and state the six month policy
|
||||||
this.useBrowserHistory = false;
|
this.useBrowserHistory = false;
|
||||||
Log.w(TAG, "useBrowserHistory=false is deprecated. We will be removing this feature entirely in six months. Please use the browser history and use history.back().");
|
Log.w(TAG, "useBrowserHistory=false is deprecated as of Cordova 2.2.0 and will be removed six months after the 2.2.0 release. Please use the browser history and use history.back().");
|
||||||
}
|
}
|
||||||
|
|
||||||
if ("true".equals(this.getProperty("fullscreen", "false"))) {
|
if ("true".equals(this.getProperty("fullscreen", "false"))) {
|
||||||
|
@ -398,7 +398,12 @@ public class NativeToJsMessageQueue {
|
|||||||
ret += 1 + pluginResult.getMessage().length();
|
ret += 1 + pluginResult.getMessage().length();
|
||||||
break;
|
break;
|
||||||
case PluginResult.MESSAGE_TYPE_STRING: // s
|
case PluginResult.MESSAGE_TYPE_STRING: // s
|
||||||
ret += 1 + pluginResult.getStrMessage().length();
|
if (pluginResult.getStrMessage() == null) {
|
||||||
|
ret += 1;
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
ret += 1 + pluginResult.getStrMessage().length();
|
||||||
|
}
|
||||||
break;
|
break;
|
||||||
case PluginResult.MESSAGE_TYPE_JSON:
|
case PluginResult.MESSAGE_TYPE_JSON:
|
||||||
default:
|
default:
|
||||||
@ -433,8 +438,10 @@ public class NativeToJsMessageQueue {
|
|||||||
.append(pluginResult.getMessage());
|
.append(pluginResult.getMessage());
|
||||||
break;
|
break;
|
||||||
case PluginResult.MESSAGE_TYPE_STRING: // s
|
case PluginResult.MESSAGE_TYPE_STRING: // s
|
||||||
sb.append('s')
|
sb.append('s');
|
||||||
.append(pluginResult.getStrMessage());
|
if (pluginResult.getStrMessage() != null) {
|
||||||
|
sb.append(pluginResult.getStrMessage());
|
||||||
|
}
|
||||||
break;
|
break;
|
||||||
case PluginResult.MESSAGE_TYPE_JSON:
|
case PluginResult.MESSAGE_TYPE_JSON:
|
||||||
default:
|
default:
|
||||||
|
Loading…
Reference in New Issue
Block a user