mirror of
https://github.com/SchildiChat/SchildiChat-android.git
synced 2025-02-17 12:30:07 +03:00
No need to create a Set to remove an item from it
This commit is contained in:
parent
c2c9e37a36
commit
78fe7e5c16
1 changed files with 1 additions and 1 deletions
|
@ -116,7 +116,7 @@ class PreviewUrlRetriever @Inject constructor(
|
|||
|
||||
// Called by the Epoxy item during unbinding
|
||||
fun removeListener(key: String, listener: PreviewUrlRetrieverListener) {
|
||||
listeners.getOrPut(key) { mutableSetOf() }.remove(listener)
|
||||
listeners[key]?.remove(listener)
|
||||
}
|
||||
|
||||
interface PreviewUrlRetrieverListener {
|
||||
|
|
Loading…
Add table
Reference in a new issue