mirror of
https://github.com/MatomoCamp/matomocamp-companion-android.git
synced 2024-09-19 16:13:46 +02:00
only allow non-null types for SingleEvent
This commit is contained in:
parent
a9c76680e4
commit
162628687d
1 changed files with 1 additions and 1 deletions
|
@ -3,7 +3,7 @@ package be.digitalia.fosdem.livedata
|
|||
/**
|
||||
* Encapsulates data that can only be consumed once.
|
||||
*/
|
||||
class SingleEvent<T>(content: T) {
|
||||
class SingleEvent<T :Any>(content: T) {
|
||||
|
||||
private var content: T? = content
|
||||
|
||||
|
|
Loading…
Reference in a new issue