Fix TetherPreference summary missing

PreferenceController need a constructor(context, key) to work in xml.

Bug: 377146536
Flag: EXEMPT bug fix
Test: manual - on Network & internet
Change-Id: Ib3c0155eacdff128333abf04a8103300623f4c2a
This commit is contained in:
Chaohui Wang
2024-12-25 15:23:13 +08:00
parent abf6c94d7d
commit 554da2d561

View File

@@ -42,7 +42,9 @@ import kotlinx.coroutines.flow.flowOn
import kotlinx.coroutines.launch
import kotlinx.coroutines.withContext
class TetherPreferenceController(
class TetherPreferenceController
@JvmOverloads
constructor(
context: Context,
key: String,
private val tetheredRepository: TetheredRepository = TetheredRepository(context),