-
Notifications
You must be signed in to change notification settings - Fork 319
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
NavigationView do not allow way name to show in overview mode #1676
Conversation
Codecov Report
@@ Coverage Diff @@
## master #1676 +/- ##
============================================
- Coverage 26.22% 26.21% -0.01%
- Complexity 786 787 +1
============================================
Files 196 196
Lines 8340 8342 +2
Branches 597 598 +1
============================================
Hits 2187 2187
- Misses 5956 5958 +2
Partials 197 197 |
@@ -69,7 +69,7 @@ void onNavigationLocationUpdate(Location location) { | |||
} | |||
|
|||
void onWayNameChanged(@NonNull String wayName) { | |||
if (TextUtils.isEmpty(wayName)) { | |||
if (TextUtils.isEmpty(wayName) || view.isSummaryBottomSheetHidden()) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Right now, I believe the feature filter task is executed anyways (although we're not showing the way name for the cases in which shouldn't be shown). Is there any possibility to achieve this but also not execute FeatureFilterTask
at all so it's not calculated in the cases in which the way name should be not visible?
e1125e9
to
5072259
Compare
@@ -41,6 +41,8 @@ | |||
|
|||
void updateNavigationMap(Location location); | |||
|
|||
void updateWayNameEnabled(boolean isEnabled); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we disable without adding a new NavigationContract
API? Maybe adding a check here
Line 39 in 5072259
void updateWayNameWithPoint(PointF point) { |
5072259
to
a37df85
Compare
@Guardiola31337 updated to not create |
Nice! Way more clean ❤️ I've noticed a small issue though 👀 After clicking on the |
@Guardiola31337 yeah good catch there - I believe fixing this would definitely require a |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's merge here then 🎉
Thanks @danesfeder
a37df85
to
6a3a2e4
Compare
Closes #1674
Nice catch @Guardiola31337!