CB-8210 Drop events from native that occur before start-up

This commit is contained in:
Andrew Grieve 2015-01-05 16:32:39 -05:00
parent 291f111913
commit c1ac3aa483

View File

@ -315,8 +315,10 @@ public class App extends CordovaPlugin {
} }
PluginResult pluginResult = new PluginResult(PluginResult.Status.OK, obj); PluginResult pluginResult = new PluginResult(PluginResult.Status.OK, obj);
pluginResult.setKeepCallback(true); pluginResult.setKeepCallback(true);
if (messageChannel != null) {
messageChannel.sendPluginResult(pluginResult); messageChannel.sendPluginResult(pluginResult);
} }
}
/* /*
* Unregister the receiver * Unregister the receiver