mirror of
https://github.com/apache/cordova-android.git
synced 2025-01-19 07:02:51 +08:00
Checking for the callback server before we call sendJavascript for the Kindle Fire, CB-247
This commit is contained in:
parent
692a59a692
commit
dc93556ef0
@ -952,7 +952,9 @@ public class DroidGap extends Activity implements CordovaInterface {
|
|||||||
* @param message
|
* @param message
|
||||||
*/
|
*/
|
||||||
public void sendJavascript(String statement) {
|
public void sendJavascript(String statement) {
|
||||||
this.callbackServer.sendJavascript(statement);
|
//We need to check for the null case on the Kindle Fire beacuse it changes the width and height on load
|
||||||
|
if(this.callbackServer != null)
|
||||||
|
this.callbackServer.sendJavascript(statement);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
Reference in New Issue
Block a user