[Thread] fix wrong kotlin argument name

Fixes build warning:
```
the corresponding parameter in the supertype 'LifecycleEventObserver' is named 'source'. This may cause problems when calling this function with named arguments.
    override fun onStateChanged(lifecycleOwner: LifecycleOwner, event: Lifecycle.Event) {
```

Bug: 327098435
Change-Id: I9c50ab508cd39bf2eda02c423deeef9ca5342f4f
This commit is contained in:
Kangping Dong
2024-03-01 00:49:03 +08:00
parent 522e193947
commit e5c4c6e677

View File

@@ -156,7 +156,7 @@ class ThreadNetworkPreferenceController @VisibleForTesting constructor(
return true return true
} }
override fun onStateChanged(lifecycleOwner: LifecycleOwner, event: Lifecycle.Event) { override fun onStateChanged(source: LifecycleOwner, event: Lifecycle.Event) {
if (threadController == null) { if (threadController == null) {
return return
} }