Skip to content
This repository has been archived by the owner on Aug 8, 2023. It is now read-only.

Immediately notify core about forced connectivity state #13485

Merged
merged 1 commit into from Dec 3, 2018

Conversation

LukasPaczos
Copy link
Member

Pushes a forced connectivity state, that can be used to block outgoing communication in offline scenarios, immediately to core instead of bundling it with system connectivity updates. This led to a couple of requests being sent out if the style was loaded from a local resource, regardless of the forced offline state.

@LukasPaczos LukasPaczos added the Android Mapbox Maps SDK for Android label Nov 30, 2018
@LukasPaczos LukasPaczos added this to the android-v7.0.0-iowaska milestone Nov 30, 2018
@LukasPaczos LukasPaczos force-pushed the lp-set-connectivity-immediately branch from 1bbaab9 to 505ba4d Compare November 30, 2018 17:26
@LukasPaczos LukasPaczos added the SEMVER-MAJOR Requires a major release according to Semantic Versioning rules label Nov 30, 2018
Mapbox.setConnected(false);
assertFalse(Mapbox.isConnected());
}

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is this test no longer valid? can we come up with a replacement (if needed an instrumented test)?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We already do have an instrumented test in place :)


private void notifyListeners(boolean isConnected) {
Logger.v(TAG, String.format("Connected: %s", isConnected));
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is it necessary to log this out with every connection change? If yes, can we put the string in a constant?

@LukasPaczos LukasPaczos force-pushed the lp-set-connectivity-immediately branch 2 times, most recently from 5a89b7e to 92e6546 Compare December 3, 2018 09:16
@LukasPaczos LukasPaczos force-pushed the lp-set-connectivity-immediately branch from 92e6546 to b76dbed Compare December 3, 2018 09:17
@LukasPaczos LukasPaczos merged commit aefcb11 into master Dec 3, 2018
@LukasPaczos LukasPaczos deleted the lp-set-connectivity-immediately branch December 3, 2018 11:02
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Android Mapbox Maps SDK for Android SEMVER-MAJOR Requires a major release according to Semantic Versioning rules
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants