Skip to content

Commit

Permalink
- fix: index issue in modified Location
Browse files Browse the repository at this point in the history
  • Loading branch information
menion committed Apr 16, 2024
1 parent 4e5195a commit 381d279
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).

## [0.9.53]
## [0.9.54]
### Added
- `GeocachingData.CACHE_SIZE_VIRTUAL` new size value

Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ Library for [Locus Map](https://www.locusmap.app) application for Android device

## Current version

Latest stable LT version: **0.9.53**
Latest stable LT version: **0.9.54**
Available versions on the maven repository: [here](https://repo1.maven.org/maven2/com/asamm/).

How to **update to new 0.9.x** version? More about it [here](https://github.com/asamm/locus-api/wiki/Update-to-version-0.9.0).
Expand Down
4 changes: 2 additions & 2 deletions gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@ GRADLE_NEXUS_STAGING = 0.30.0
LOCUS_LOGGER = 2.2

# Version
API_CODE = 100
API_VERSION = 0.9.53
API_CODE = 101
API_VERSION = 0.9.54

# ANDROID SUPPORT LIBS
# https://developer.android.com/topic/libraries/support-library/revisions.html
Expand Down
12 changes: 6 additions & 6 deletions locus-api-core/src/main/java/locus/api/objects/extra/Location.kt
Original file line number Diff line number Diff line change
Expand Up @@ -183,23 +183,23 @@ class Location() : Storable() {
loc.extraDataShort
?.takeIf { !it.isEmpty }
?.let {
for (i in 0 .. it.size()) {
for (i in 0 until it.size()) {
setDataShort(it.keyAt(i), it.valueAt(i))
}
}
extraDataInt?.clear()
loc.extraDataInt
?.takeIf { !it.isEmpty }
?.let {
for (i in 0 .. it.size()) {
for (i in 0 until it.size()) {
setDataInt(it.keyAt(i), it.valueAt(i))
}
}
extraDataLong?.clear()
loc.extraDataLong
?.takeIf { !it.isEmpty }
?.let {
for (i in 0 .. it.size()) {
for (i in 0 until it.size()) {
setDataLong(it.keyAt(i), it.valueAt(i))
}
}
Expand All @@ -208,23 +208,23 @@ class Location() : Storable() {
loc.extraDataFloat
?.takeIf { !it.isEmpty }
?.let {
for (i in 0 .. it.size()) {
for (i in 0 until it.size()) {
setDataFloat(it.keyAt(i), it.valueAt(i))
}
}
extraDataDouble?.clear()
loc.extraDataDouble
?.takeIf { !it.isEmpty }
?.let {
for (i in 0 .. it.size()) {
for (i in 0 until it.size()) {
setDataDouble(it.keyAt(i), it.valueAt(i))
}
}
extraDataString?.clear()
loc.extraDataString
?.takeIf { !it.isEmpty }
?.let {
for (i in 0 .. it.size()) {
for (i in 0 until it.size()) {
setDataString(it.keyAt(i), it.valueAt(i))
}
}
Expand Down

0 comments on commit 381d279

Please sign in to comment.