Make elementClassicComponent a val.
This commit is contained in:
parent
ea4413696c
commit
f670677427
1 changed files with 2 additions and 2 deletions
|
|
@ -114,7 +114,7 @@ class DefaultElementClassicConnection(
|
||||||
// applications replace our component.
|
// applications replace our component.
|
||||||
try {
|
try {
|
||||||
val intentService = Intent()
|
val intentService = Intent()
|
||||||
intentService.setComponent(getElementClassicComponent())
|
intentService.setComponent(elementClassicComponent)
|
||||||
if (serviceBinder.bindService(intentService, serviceConnection, BIND_AUTO_CREATE)) {
|
if (serviceBinder.bindService(intentService, serviceConnection, BIND_AUTO_CREATE)) {
|
||||||
Timber.tag(loggerTag.value).d("Binding returned true")
|
Timber.tag(loggerTag.value).d("Binding returned true")
|
||||||
} else {
|
} else {
|
||||||
|
|
@ -304,7 +304,7 @@ class DefaultElementClassicConnection(
|
||||||
mutableStateFlow.emit(state)
|
mutableStateFlow.emit(state)
|
||||||
}
|
}
|
||||||
|
|
||||||
private fun getElementClassicComponent() = ComponentName(
|
private val elementClassicComponent = ComponentName(
|
||||||
BuildConfig.elementClassicPackage,
|
BuildConfig.elementClassicPackage,
|
||||||
ELEMENT_CLASSIC_SERVICE_FULL_CLASS_NAME,
|
ELEMENT_CLASSIC_SERVICE_FULL_CLASS_NAME,
|
||||||
)
|
)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue