Fix some small things

This commit is contained in:
Alexander Sytnyk 2017-08-15 12:50:51 +03:00
parent e460e2ba2c
commit 0b992d2b5d
2 changed files with 4 additions and 1 deletions

View file

@ -955,7 +955,7 @@ public class MeasurementToolFragment extends Fragment {
MeasurementToolLayer measurementLayer = getMeasurementLayer();
if (measurementLayer != null) {
distanceTv.setText(measurementLayer.getDistanceSt() + ",");
pointsTv.setText(pointsSt + ": " + measurementLayer.getPointsCount());
pointsTv.setText((portrait ? pointsSt + ": " : "") + measurementLayer.getPointsCount());
}
}

View file

@ -72,6 +72,9 @@ public class MeasurementToolAdapter extends RecyclerView.Adapter<MeasurementTool
});
holder.icon.setImageDrawable(iconsCache.getIcon(R.drawable.ic_action_measure_point,
nightMode ? R.color.ctx_menu_info_text_dark : R.color.icon_color));
if (nightMode) {
holder.title.setTextColor(mapActivity.getMyApplication().getResources().getColor(R.color.primary_text_dark));
}
holder.title.setText(mapActivity.getString(R.string.plugin_distance_point) + " - " + (pos + 1));
if (pos < 1) {
holder.descr.setText(mapActivity.getString(R.string.shared_string_control_start));