mirror of
https://github.com/nextcloud/talk-android
synced 2025-03-06 14:27:24 +00:00
Remove lint error for using 'Hashmap#forEach'
Call requires API level 24 (current min is 21): java.util.HashMap#forEach Signed-off-by: Tim Krüger <t@timkrueger.me>
This commit is contained in:
parent
6b671191e9
commit
000184a338
@ -59,7 +59,7 @@ class SharedItemsViewModel(private val repository: SharedItemsRepository, privat
|
||||
}
|
||||
|
||||
val mediaItems = response.body()!!.ocs!!.data
|
||||
mediaItems?.forEach {
|
||||
for (it in mediaItems) {
|
||||
if (it.value.messageParameters.containsKey("file")) {
|
||||
val fileParameters = it.value.messageParameters["file"]!!
|
||||
|
||||
@ -79,7 +79,6 @@ class SharedItemsViewModel(private val repository: SharedItemsRepository, privat
|
||||
} else {
|
||||
Log.w(TAG, "location and deckcard are not yet supported")
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user