Fix cancel button

This commit is contained in:
PavelRatushnyi 2017-08-10 01:59:50 +03:00
parent 226162a76f
commit f4b7e20dde
2 changed files with 4 additions and 4 deletions

View file

@ -212,7 +212,7 @@
android:visibility="gone"/> android:visibility="gone"/>
<net.osmand.plus.widgets.TextViewEx <net.osmand.plus.widgets.TextViewEx
android:id="@+id/cancel_button" android:id="@+id/cancel_point_button"
android:gravity="center_vertical" android:gravity="center_vertical"
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="match_parent" android:layout_height="match_parent"

View file

@ -130,7 +130,7 @@ public class MeasurementToolFragment extends Fragment {
upDownBtn = (ImageView) mainView.findViewById(R.id.up_down_button); upDownBtn = (ImageView) mainView.findViewById(R.id.up_down_button);
upDownBtn.setImageDrawable(iconsCache.getThemedIcon(R.drawable.ic_action_arrow_up)); upDownBtn.setImageDrawable(iconsCache.getThemedIcon(R.drawable.ic_action_arrow_up));
((TextViewEx) mainView.findViewById(R.id.cancel_button)).setOnClickListener(new View.OnClickListener() { ((TextViewEx) mainView.findViewById(R.id.cancel_point_button)).setOnClickListener(new View.OnClickListener() {
@Override @Override
public void onClick(View view) { public void onClick(View view) {
cancelMovePointMode(); cancelMovePointMode();
@ -378,7 +378,7 @@ public class MeasurementToolFragment extends Fragment {
mark(View.VISIBLE, mark(View.VISIBLE,
R.id.move_point_icon, R.id.move_point_icon,
R.id.move_point_text, R.id.move_point_text,
R.id.cancel_button, R.id.cancel_point_button,
R.id.apply_point_button); R.id.apply_point_button);
} }
@ -386,7 +386,7 @@ public class MeasurementToolFragment extends Fragment {
mark(View.GONE, mark(View.GONE,
R.id.move_point_icon, R.id.move_point_icon,
R.id.move_point_text, R.id.move_point_text,
R.id.cancel_button, R.id.cancel_point_button,
R.id.apply_point_button); R.id.apply_point_button);
mark(View.VISIBLE, mark(View.VISIBLE,
R.id.ruler_icon, R.id.ruler_icon,