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

Commit 554da2d5 authored by Chaohui Wang's avatar Chaohui Wang
Browse files

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
parent abf6c94d
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -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),