Bigger select radius for tablets
This commit is contained in:
parent
e2a21323ec
commit
aa58bf4a12
3 changed files with 5 additions and 1 deletions
|
@ -2,4 +2,6 @@
|
||||||
<resources>
|
<resources>
|
||||||
<dimen name="splash_screen_logo_top">300dp</dimen>
|
<dimen name="splash_screen_logo_top">300dp</dimen>
|
||||||
<dimen name="splash_screen_text_bottom">200dp</dimen>
|
<dimen name="splash_screen_text_bottom">200dp</dimen>
|
||||||
|
|
||||||
|
<dimen name="measurement_tool_select_radius">48dp</dimen>
|
||||||
</resources>
|
</resources>
|
|
@ -158,4 +158,6 @@
|
||||||
|
|
||||||
<dimen name="measure_distance_bottom_sheet_cancel_button_height">48dp</dimen>
|
<dimen name="measure_distance_bottom_sheet_cancel_button_height">48dp</dimen>
|
||||||
<dimen name="landscape_bottom_sheet_dialog_fragment_width">360dp</dimen>
|
<dimen name="landscape_bottom_sheet_dialog_fragment_width">360dp</dimen>
|
||||||
|
|
||||||
|
<dimen name="measurement_tool_select_radius">20dp</dimen>
|
||||||
</resources>
|
</resources>
|
|
@ -193,7 +193,7 @@ public class MeasurementToolLayer extends OsmandMapLayer implements ContextMenuL
|
||||||
private void selectPoint(double x, double y, boolean singleTap) {
|
private void selectPoint(double x, double y, boolean singleTap) {
|
||||||
clearSelection();
|
clearSelection();
|
||||||
RotatedTileBox tb = view.getCurrentRotatedTileBox();
|
RotatedTileBox tb = view.getCurrentRotatedTileBox();
|
||||||
double lowestDistance = AndroidUtils.dpToPx(view.getContext(), 20);
|
double lowestDistance = view.getResources().getDimension(R.dimen.measurement_tool_select_radius);
|
||||||
for (int i = 0; i < measurementPoints.size(); i++) {
|
for (int i = 0; i < measurementPoints.size(); i++) {
|
||||||
WptPt pt = measurementPoints.get(i);
|
WptPt pt = measurementPoints.get(i);
|
||||||
if (tb.containsLatLon(pt.getLatitude(), pt.getLongitude())) {
|
if (tb.containsLatLon(pt.getLatitude(), pt.getLongitude())) {
|
||||||
|
|
Loading…
Reference in a new issue