Commit 9ac2b3321dfa82f3575ee6795357a2cfe6e1b10b
1 parent
0d01d62f
Add on click positionning
Showing
1 changed file
with
1 additions
and
1 deletions
Show diff stats
app/src/main/java/fr/utbm/lo53/p2017/positionningapp/Calibration.java
... | ... | @@ -39,7 +39,7 @@ public class Calibration extends BaseActivity { |
39 | 39 | Map.setOnTouchListener(new View.OnTouchListener() { |
40 | 40 | @Override |
41 | 41 | public boolean onTouch(View view, MotionEvent motionEvent) { |
42 | - if(motionEvent.getAction()==motionEvent.ACTION_MOVE) { | |
42 | + if(motionEvent.getAction()==motionEvent.ACTION_MOVE || motionEvent.getAction()==motionEvent.ACTION_UP) { | |
43 | 43 | MapMarker.setVisibility(MapMarker.VISIBLE); |
44 | 44 | Snackbar.make(view, " X : " + motionEvent.getX() + " Y : " + motionEvent.getY(), Snackbar.LENGTH_LONG) |
45 | 45 | .setAction("Action", null).show(); | ... | ... |