mirror of https://github.com/M66B/FairEmail.git
14 lines
346 B
Kotlin
14 lines
346 B
Kotlin
package com.bugsnag.android
|
|
|
|
internal class ContextState(context: String? = null) : BaseObservable() {
|
|
var context = context
|
|
set(value) {
|
|
field = value
|
|
emitObservableEvent()
|
|
}
|
|
|
|
fun emitObservableEvent() = notifyObservers(StateEvent.UpdateContext(context))
|
|
|
|
fun copy() = ContextState(context)
|
|
}
|