forked from github/cordova-android
Set the initial network-available state on start-up.
I've been assuming that it always starts as true, but this will ensure that it does.
This commit is contained in:
parent
6ca6d88bff
commit
ee34f11c29
@ -187,8 +187,12 @@ public class NativeToJsMessageQueue {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
OnlineEventsBridgeMode() {
|
||||||
|
webView.setNetworkAvailable(true);
|
||||||
|
}
|
||||||
public void onNativeToJsMessageAvailable() {
|
public void onNativeToJsMessageAvailable() {
|
||||||
|
// TODO(agrieve): consider running this *not* on the main thread, since it just
|
||||||
|
// sends a message under-the-hood anyways.
|
||||||
cordova.getActivity().runOnUiThread(runnable);
|
cordova.getActivity().runOnUiThread(runnable);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user