Fix idx if idx == -1 or >= markerList size

このコミットが含まれているのは:
Schoumi 2017-08-23 15:23:21 +02:00
コミット 3a205aa183
1個のファイルの変更2行の追加0行の削除

ファイルの表示

@ -373,6 +373,8 @@ public class MapsFragment extends Fragment implements OnMapReadyCallback {
int idx = markerList.indexOfValue(marker);
if(idx < 0 || idx >= markerList.size())
return false;
long id = markerList.keyAt(idx);
selectedSite = id;
BloodSite infoSite = null;