Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 175721cf authored by Jacky Wang's avatar Jacky Wang
Browse files

[Catalyst] Allow stubbing PreferenceLifecycleContext.lifecycleScope

Bug: 332201912
Flag: EXEMPT library
Test: build
Change-Id: I05f437bad8487f82704cf5e1d039d632a8f8523c
parent 475c7ab2
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -23,7 +23,6 @@ import android.os.Bundle
import androidx.activity.result.ActivityResultCallback
import androidx.activity.result.ActivityResultLauncher
import androidx.activity.result.contract.ActivityResultContract
import androidx.lifecycle.LifecycleCoroutineScope
import com.android.settingslib.datastore.KeyValueStore
import kotlinx.coroutines.CoroutineScope

@@ -149,7 +148,7 @@ abstract class PreferenceLifecycleContext(context: Context) : ContextWrapper(con
     *
     * @see [androidx.lifecycle.lifecycleScope]
     */
    abstract val lifecycleScope: LifecycleCoroutineScope
    abstract val lifecycleScope: CoroutineScope

    /** Returns the preference widget object associated with given key. */
    abstract fun <T> findPreference(key: String): T?