mirror of
https://github.com/Novaloop-AG/element-x-android.git
synced 2026-11-02 12:07:28 +00:00
Make elementClassicComponent a val.
This commit is contained in:
+2
-2
@@ -114,7 +114,7 @@ class DefaultElementClassicConnection(
|
||||
// applications replace our component.
|
||||
try {
|
||||
val intentService = Intent()
|
||||
intentService.setComponent(getElementClassicComponent())
|
||||
intentService.setComponent(elementClassicComponent)
|
||||
if (serviceBinder.bindService(intentService, serviceConnection, BIND_AUTO_CREATE)) {
|
||||
Timber.tag(loggerTag.value).d("Binding returned true")
|
||||
} else {
|
||||
@@ -304,7 +304,7 @@ class DefaultElementClassicConnection(
|
||||
mutableStateFlow.emit(state)
|
||||
}
|
||||
|
||||
private fun getElementClassicComponent() = ComponentName(
|
||||
private val elementClassicComponent = ComponentName(
|
||||
BuildConfig.elementClassicPackage,
|
||||
ELEMENT_CLASSIC_SERVICE_FULL_CLASS_NAME,
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user