Create AppDataUsageAppSettingsController

For better organization and testings.

Bug: 240931350
Test: manual - on AppDataUsage
Test: unit test
Change-Id: Ie3d35f5d112cf06cca585c9859624d705fbe2655
This commit is contained in:
Chaohui Wang
2023-10-08 16:58:32 +08:00
parent 4188a571aa
commit 08e24272e4
5 changed files with 195 additions and 41 deletions

View File

@@ -40,7 +40,7 @@ open class AppDataUsageListController @JvmOverloads constructor(
private val repository: AppPreferenceRepository = AppPreferenceRepository(context),
) : BasePreferenceController(context, preferenceKey) {
private lateinit var uids: List<Int>
private var uids: List<Int> = emptyList()
private lateinit var preference: PreferenceGroup
fun init(uids: SparseBooleanArray) {