forked from github/cordova-android
346ed60f0d
For Android version 2.2 or better the navigator.connection object already exists. If this case we should immediately fire the onPhoneGapConnectionReady event so we don't tie up the 'deviceready' event.