Skip to content

Conversation

@danesfeder
Copy link
Contributor

Closes #1692

We were assuming a style was being provided for the LocationComponent when it's possible for developers to use the NavigationMapboxMap outside of the NavigationView context.

@danesfeder danesfeder added bug Defect to be fixed. ✓ ready for review labels Jan 23, 2019
@danesfeder danesfeder added this to the v0.28.0 milestone Jan 23, 2019
@danesfeder danesfeder self-assigned this Jan 23, 2019
@codecov-io
Copy link

codecov-io commented Jan 23, 2019

Codecov Report

Merging #1696 into master will decrease coverage by 0.01%.
The diff coverage is 0%.

@@             Coverage Diff             @@
##             master   #1696      +/-   ##
===========================================
- Coverage     29.22%   29.2%   -0.02%     
  Complexity      810     810              
===========================================
  Files           202     202              
  Lines          7898    7902       +4     
  Branches        618     619       +1     
===========================================
  Hits           2308    2308              
- Misses         5369    5373       +4     
  Partials        221     221

Copy link
Contributor

@Guardiola31337 Guardiola31337 left a comment

Choose a reason for hiding this comment

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

I left a couple of minor comments. As soon as the conflicts from master are fixed we can merge here.

Thanks for the quick fix @danesfeder

private static final String TRAFFIC_LAYER_ID = "traffic";
private static final int[] ZERO_MAP_PADDING = {0, 0, 0, 0};
private static final double NAVIGATION_MAXIMUM_MAP_ZOOM = 18d;
private static final int INVLAID_LAYER_STYLE = 0;
Copy link
Contributor

Choose a reason for hiding this comment

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

Typo *INVLAID_LAYER_STYLE 👉 INVALID

private int findLayerStyleRes(Context context) {
int locationLayerStyleRes = ThemeSwitcher.retrieveNavigationViewStyle(context,
R.attr.navigationViewLocationLayerStyle);
if (locationLayerStyleRes == INVLAID_LAYER_STYLE) {
Copy link
Contributor

Choose a reason for hiding this comment

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

Copy link
Contributor

Choose a reason for hiding this comment

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

Previous comment #1696 (comment) won't apply if we implement this.

@danesfeder danesfeder force-pushed the dan-map-style-handle branch 2 times, most recently from f07f10d to 353ecb3 Compare January 25, 2019 17:41
@danesfeder danesfeder force-pushed the dan-map-style-handle branch from 353ecb3 to 5591a8a Compare January 25, 2019 18:33
Copy link
Contributor

@Guardiola31337 Guardiola31337 left a comment

Choose a reason for hiding this comment

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

Thanks for addressing the feedback @danesfeder

:shipit:

@danesfeder danesfeder force-pushed the dan-map-style-handle branch from 5591a8a to d8384bf Compare January 25, 2019 20:32
@danesfeder danesfeder merged commit 1900e48 into master Jan 25, 2019
@danesfeder danesfeder deleted the dan-map-style-handle branch January 25, 2019 20:50
@danesfeder danesfeder mentioned this pull request Jan 30, 2019
12 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Defect to be fixed.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants