Skip to content

Commit 381d279

Browse files
committed
- fix: index issue in modified Location
1 parent 4e5195a commit 381d279

File tree

4 files changed

+10
-10
lines changed

4 files changed

+10
-10
lines changed

Diff for: CHANGELOG.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ All notable changes to this project will be documented in this file.
44
The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
55
and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).
66

7-
## [0.9.53]
7+
## [0.9.54]
88
### Added
99
- `GeocachingData.CACHE_SIZE_VIRTUAL` new size value
1010

Diff for: README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ Library for [Locus Map](https://www.locusmap.app) application for Android device
1616

1717
## Current version
1818

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

2222
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).

Diff for: gradle.properties

+2-2
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,8 @@ GRADLE_NEXUS_STAGING = 0.30.0
2323
LOCUS_LOGGER = 2.2
2424

2525
# Version
26-
API_CODE = 100
27-
API_VERSION = 0.9.53
26+
API_CODE = 101
27+
API_VERSION = 0.9.54
2828

2929
# ANDROID SUPPORT LIBS
3030
# https://developer.android.com/topic/libraries/support-library/revisions.html

Diff for: locus-api-core/src/main/java/locus/api/objects/extra/Location.kt

+6-6
Original file line numberDiff line numberDiff line change
@@ -183,23 +183,23 @@ class Location() : Storable() {
183183
loc.extraDataShort
184184
?.takeIf { !it.isEmpty }
185185
?.let {
186-
for (i in 0 .. it.size()) {
186+
for (i in 0 until it.size()) {
187187
setDataShort(it.keyAt(i), it.valueAt(i))
188188
}
189189
}
190190
extraDataInt?.clear()
191191
loc.extraDataInt
192192
?.takeIf { !it.isEmpty }
193193
?.let {
194-
for (i in 0 .. it.size()) {
194+
for (i in 0 until it.size()) {
195195
setDataInt(it.keyAt(i), it.valueAt(i))
196196
}
197197
}
198198
extraDataLong?.clear()
199199
loc.extraDataLong
200200
?.takeIf { !it.isEmpty }
201201
?.let {
202-
for (i in 0 .. it.size()) {
202+
for (i in 0 until it.size()) {
203203
setDataLong(it.keyAt(i), it.valueAt(i))
204204
}
205205
}
@@ -208,23 +208,23 @@ class Location() : Storable() {
208208
loc.extraDataFloat
209209
?.takeIf { !it.isEmpty }
210210
?.let {
211-
for (i in 0 .. it.size()) {
211+
for (i in 0 until it.size()) {
212212
setDataFloat(it.keyAt(i), it.valueAt(i))
213213
}
214214
}
215215
extraDataDouble?.clear()
216216
loc.extraDataDouble
217217
?.takeIf { !it.isEmpty }
218218
?.let {
219-
for (i in 0 .. it.size()) {
219+
for (i in 0 until it.size()) {
220220
setDataDouble(it.keyAt(i), it.valueAt(i))
221221
}
222222
}
223223
extraDataString?.clear()
224224
loc.extraDataString
225225
?.takeIf { !it.isEmpty }
226226
?.let {
227-
for (i in 0 .. it.size()) {
227+
for (i in 0 until it.size()) {
228228
setDataString(it.keyAt(i), it.valueAt(i))
229229
}
230230
}

0 commit comments

Comments
 (0)