fix replace elements "Time moving" with "Time in motion"

This commit is contained in:
Skalii 2021-03-30 14:46:01 +03:00
parent 118721bb9e
commit 77e61515d8
4 changed files with 6 additions and 8 deletions

View file

@ -200,7 +200,7 @@
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="@null"
android:text="@string/shared_string_time_moving"
android:text="@string/moving_time"
android:textColor="?android:attr/textColorSecondary"
android:textSize="@dimen/default_desc_text_size" />
@ -221,7 +221,7 @@
android:layout_width="wrap_content"
android:layout_height="@dimen/poi_icon_size"
android:layout_marginTop="2dp"
osmand:srcCompat="@drawable/ic_action_time_span" />
osmand:srcCompat="@drawable/ic_action_time_moving_16" />
</LinearLayout>

View file

@ -70,7 +70,7 @@ public class SelectedGpxMenuBuilder extends MenuBuilder {
String timeSpan = Algorithms.formatDuration((int) (analysis.timeSpan / 1000), app.accessibilityEnabled());
String timeMoving = Algorithms.formatDuration((int) (analysis.timeMoving / 1000), app.accessibilityEnabled());
String timeSpanTitle = app.getString(R.string.shared_string_time_span) + " / " + app.getString(R.string.shared_string_time_moving);
String timeSpanTitle = app.getString(R.string.shared_string_time_span) + " / " + app.getString(R.string.moving_time);
buildRow(view, getThemedIcon(R.drawable.ic_action_time_span), null, timeSpanTitle,
timeSpan + " / " + timeMoving, 0, null,
false, null, false, 0, false, false, false, null, false);

View file

@ -308,7 +308,7 @@ public class GPXItemPagerAdapter extends PagerAdapter implements CustomTabProvid
((ImageView) view.findViewById(R.id.max_icon))
.setImageDrawable(iconsCache.getThemedIcon(R.drawable.ic_action_max_speed));
((ImageView) view.findViewById(R.id.time_moving_icon))
.setImageDrawable(iconsCache.getThemedIcon(R.drawable.ic_action_time_span));
.setImageDrawable(iconsCache.getThemedIcon(R.drawable.ic_action_time_moving_16));
((ImageView) view.findViewById(R.id.distance_icon))
.setImageDrawable(iconsCache.getThemedIcon(R.drawable.ic_action_polygom_dark));

View file

@ -253,10 +253,8 @@ public class GpxBlockStatisticsBuilder {
}
public void prepareDataTimeMoving(long timeMoving) {
prepareData(app.getString(tabItem == GPX_TAB_ITEM_SPEED ? R.string.shared_string_time_moving : R.string.moving_time),
Algorithms.formatDuration((int) (timeMoving / 1000), app.accessibilityEnabled()),
tabItem == GPX_TAB_ITEM_SPEED ? R.drawable.ic_action_time_span_16 : R.drawable.ic_action_time_moving_16,
GPXDataSetType.SPEED, null, ItemType.ITEM_TIME_MOVING);
prepareData(app.getString(R.string.moving_time), Algorithms.formatDuration((int) (timeMoving / 1000), app.accessibilityEnabled()),
R.drawable.ic_action_time_moving_16, GPXDataSetType.SPEED, null, ItemType.ITEM_TIME_MOVING);
}
public void prepareDataDistanceCorrected(float totalDistanceMoving) {