Fix cancel button
This commit is contained in:
parent
226162a76f
commit
f4b7e20dde
2 changed files with 4 additions and 4 deletions
|
@ -212,7 +212,7 @@
|
|||
android:visibility="gone"/>
|
||||
|
||||
<net.osmand.plus.widgets.TextViewEx
|
||||
android:id="@+id/cancel_button"
|
||||
android:id="@+id/cancel_point_button"
|
||||
android:gravity="center_vertical"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="match_parent"
|
||||
|
|
|
@ -130,7 +130,7 @@ public class MeasurementToolFragment extends Fragment {
|
|||
upDownBtn = (ImageView) mainView.findViewById(R.id.up_down_button);
|
||||
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
|
||||
public void onClick(View view) {
|
||||
cancelMovePointMode();
|
||||
|
@ -378,7 +378,7 @@ public class MeasurementToolFragment extends Fragment {
|
|||
mark(View.VISIBLE,
|
||||
R.id.move_point_icon,
|
||||
R.id.move_point_text,
|
||||
R.id.cancel_button,
|
||||
R.id.cancel_point_button,
|
||||
R.id.apply_point_button);
|
||||
}
|
||||
|
||||
|
@ -386,7 +386,7 @@ public class MeasurementToolFragment extends Fragment {
|
|||
mark(View.GONE,
|
||||
R.id.move_point_icon,
|
||||
R.id.move_point_text,
|
||||
R.id.cancel_button,
|
||||
R.id.cancel_point_button,
|
||||
R.id.apply_point_button);
|
||||
mark(View.VISIBLE,
|
||||
R.id.ruler_icon,
|
||||
|
|
Loading…
Reference in a new issue