-
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
Add ETA support for the notification back #1184
Conversation
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.
@Guardiola31337 great catch, one minor comment 🚀
@@ -187,8 +190,9 @@ private void updateArrivalTime(RouteProgress routeProgress) { | |||
double durationRemaining = routeProgress.durationRemaining(); | |||
int timeFormatType = options.timeFormatType(); | |||
String arrivalTime = formatTime(time, durationRemaining, timeFormatType, isTwentyFourHourFormat); | |||
collapsedNotificationRemoteViews.setTextViewText(R.id.notificationArrivalText, arrivalTime); | |||
expandedNotificationRemoteViews.setTextViewText(R.id.notificationArrivalText, arrivalTime); | |||
String formattedArrivalText = String.format(Locale.getDefault(), etaFormat, arrivalTime); |
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.
Would it be better to get the Configuration
Locale
using LocaleUtils
here? We can do this during initialize
. I believe we are doing this everywhere else within the SDK, so it would be great to stay consistent.
a5ea26c
to
464c2da
Compare
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.
@Guardiola31337 thanks for the clarification 🚀 🚢
464c2da
to
1d24f07
Compare
1d24f07
to
f3b4271
Compare
In #1115 we removed the ETA from
arrivalTime
inMapboxNavigationNotification
by mistake.This PR brings that functionality back.