mirror of
https://github.com/apache/cordova-android.git
synced 2025-02-20 23:56:20 +08:00
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() {
|
||||
// TODO(agrieve): consider running this *not* on the main thread, since it just
|
||||
// sends a message under-the-hood anyways.
|
||||
cordova.getActivity().runOnUiThread(runnable);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user