Merge branch '131-fix-recyclerview-entries' into 'master'
Resolve "Fix RecyclerView entries" Closes #131 See merge request marcel.schwarz/2020ss-qbc-geofence-timetracking!112
This commit is contained in:
commit
f9ce4d4db8
@ -178,9 +178,11 @@ class MainActivity : AppCompatActivity() {
|
||||
val entries = response.body()!!.records.entries
|
||||
if (!entries.isEmpty()) {
|
||||
entries.forEach {
|
||||
recordList.add(RecordEntry(it.startdate.substring(11, 16)
|
||||
, it.enddate.substring(11, 16)
|
||||
, it.duration))
|
||||
if (it.type.equals("PAID")) {
|
||||
recordList.add(RecordEntry(it.startdate.substring(11, 16)
|
||||
, it.enddate.substring(11, 16)
|
||||
, it.duration))
|
||||
}
|
||||
}
|
||||
|
||||
} else {
|
||||
|
Loading…
Reference in New Issue
Block a user