[android] fix added to map checks because LongSparseArray#indexOfKey could return a negative number when the specified key is not mapped (#9602)
This commit is contained in:
@@ -301,7 +301,7 @@ class AnnotationManager {
|
||||
}
|
||||
|
||||
private boolean isAddedToMap(Annotation annotation) {
|
||||
return annotation != null && annotation.getId() != -1 && annotations.indexOfKey(annotation.getId()) != -1;
|
||||
return annotation != null && annotation.getId() != -1 && annotations.indexOfKey(annotation.getId()) > -1;
|
||||
}
|
||||
|
||||
private void ensureIconLoaded(Marker marker) {
|
||||
|
||||
Reference in New Issue
Block a user