Fix incorrect filter blocking onclick of point index 0.

This commit is contained in:
voussoir 2023-03-28 22:07:12 -07:00
parent bac441ad4b
commit 19a97d905a
2 changed files with 3 additions and 3 deletions

View file

@ -10,8 +10,8 @@ android {
applicationId 'net.voussoir.trkpt' applicationId 'net.voussoir.trkpt'
minSdkVersion 25 minSdkVersion 25
targetSdk 32 targetSdk 32
versionCode 51 versionCode 52
versionName '1.0.0' versionName '1.0.1'
resConfigs "en", "da", "de", "fr", "hr", "id", "it", "ja", "nb-rNO", "nl", "pl", "pt-rBR", "ru", "sv", "tr", "zh-rCN" resConfigs "en", "da", "de", "fr", "hr", "id", "it", "ja", "nb-rNO", "nl", "pl", "pt-rBR", "ru", "sv", "tr", "zh-rCN"
} }

View file

@ -404,7 +404,7 @@ class TrackFragment : Fragment(), MapListener, YesNoDialog.YesNoDialogListener
track_points_overlay!!.setOnClickListener(object : SimpleFastPointOverlay.OnClickListener { track_points_overlay!!.setOnClickListener(object : SimpleFastPointOverlay.OnClickListener {
override fun onClick(points: SimpleFastPointOverlay.PointAdapter?, point: Int?) override fun onClick(points: SimpleFastPointOverlay.PointAdapter?, point: Int?)
{ {
if (points == null || point == null || point == 0) if (points == null || point == null)
{ {
return return
} }