Fix bug
This commit is contained in:
parent
7efd7ec891
commit
d9ee892c76
@ -178,10 +178,12 @@ class MainActivity : AppCompatActivity() {
|
|||||||
val entries = response.body()!!.records.entries
|
val entries = response.body()!!.records.entries
|
||||||
if (!entries.isEmpty()) {
|
if (!entries.isEmpty()) {
|
||||||
entries.forEach {
|
entries.forEach {
|
||||||
|
if (it.type.equals("PAID")) {
|
||||||
recordList.add(RecordEntry(it.startdate.substring(11, 16)
|
recordList.add(RecordEntry(it.startdate.substring(11, 16)
|
||||||
, it.enddate.substring(11, 16)
|
, it.enddate.substring(11, 16)
|
||||||
, it.duration))
|
, it.duration))
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
println("No Records!")
|
println("No Records!")
|
||||||
|
Loading…
Reference in New Issue
Block a user