mirror of
https://github.com/Novaloop-AG/element-x-android.git
synced 2026-11-05 12:54:35 +00:00
Move vals at the top of the class.
This commit is contained in:
+8
-8
@@ -80,6 +80,14 @@ class DefaultElementClassicConnection(
|
|||||||
// Flag indicating whether we have called bind on the service.
|
// Flag indicating whether we have called bind on the service.
|
||||||
private var bound: Boolean = false
|
private var bound: Boolean = false
|
||||||
|
|
||||||
|
private val mutableStateFlow = MutableStateFlow<ElementClassicConnectionState>(ElementClassicConnectionState.Idle)
|
||||||
|
override val stateFlow = mutableStateFlow.asStateFlow()
|
||||||
|
|
||||||
|
private val elementClassicComponent = ComponentName(
|
||||||
|
BuildConfig.elementClassicPackage,
|
||||||
|
ELEMENT_CLASSIC_SERVICE_FULL_CLASS_NAME,
|
||||||
|
)
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Class for interacting with the main interface of the service.
|
* Class for interacting with the main interface of the service.
|
||||||
*/
|
*/
|
||||||
@@ -192,9 +200,6 @@ class DefaultElementClassicConnection(
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private val mutableStateFlow = MutableStateFlow<ElementClassicConnectionState>(ElementClassicConnectionState.Idle)
|
|
||||||
override val stateFlow = mutableStateFlow.asStateFlow()
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Handler of incoming messages from service.
|
* Handler of incoming messages from service.
|
||||||
*/
|
*/
|
||||||
@@ -304,11 +309,6 @@ class DefaultElementClassicConnection(
|
|||||||
mutableStateFlow.emit(state)
|
mutableStateFlow.emit(state)
|
||||||
}
|
}
|
||||||
|
|
||||||
private val elementClassicComponent = ComponentName(
|
|
||||||
BuildConfig.elementClassicPackage,
|
|
||||||
ELEMENT_CLASSIC_SERVICE_FULL_CLASS_NAME,
|
|
||||||
)
|
|
||||||
|
|
||||||
private fun Bundle.toElementClassicConnectionState(): ElementClassicConnectionState {
|
private fun Bundle.toElementClassicConnectionState(): ElementClassicConnectionState {
|
||||||
val error = getString(KEY_ERROR_STR)
|
val error = getString(KEY_ERROR_STR)
|
||||||
return if (error != null) {
|
return if (error != null) {
|
||||||
|
|||||||
Reference in New Issue
Block a user