Fix some small things
This commit is contained in:
parent
e460e2ba2c
commit
0b992d2b5d
2 changed files with 4 additions and 1 deletions
|
@ -955,7 +955,7 @@ public class MeasurementToolFragment extends Fragment {
|
||||||
MeasurementToolLayer measurementLayer = getMeasurementLayer();
|
MeasurementToolLayer measurementLayer = getMeasurementLayer();
|
||||||
if (measurementLayer != null) {
|
if (measurementLayer != null) {
|
||||||
distanceTv.setText(measurementLayer.getDistanceSt() + ",");
|
distanceTv.setText(measurementLayer.getDistanceSt() + ",");
|
||||||
pointsTv.setText(pointsSt + ": " + measurementLayer.getPointsCount());
|
pointsTv.setText((portrait ? pointsSt + ": " : "") + measurementLayer.getPointsCount());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -72,6 +72,9 @@ public class MeasurementToolAdapter extends RecyclerView.Adapter<MeasurementTool
|
||||||
});
|
});
|
||||||
holder.icon.setImageDrawable(iconsCache.getIcon(R.drawable.ic_action_measure_point,
|
holder.icon.setImageDrawable(iconsCache.getIcon(R.drawable.ic_action_measure_point,
|
||||||
nightMode ? R.color.ctx_menu_info_text_dark : R.color.icon_color));
|
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));
|
holder.title.setText(mapActivity.getString(R.string.plugin_distance_point) + " - " + (pos + 1));
|
||||||
if (pos < 1) {
|
if (pos < 1) {
|
||||||
holder.descr.setText(mapActivity.getString(R.string.shared_string_control_start));
|
holder.descr.setText(mapActivity.getString(R.string.shared_string_control_start));
|
||||||
|
|
Loading…
Reference in a new issue