File tree 1 file changed +6
-3
lines changed
src/com/android/settings/sudconfig
1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -2,11 +2,11 @@ package com.android.settings.sudconfig
2
2
3
3
import android.os.Build
4
4
import android.os.Bundle
5
- import android.os.SystemProperties
6
5
import android.provider.Settings
7
6
import android.text.TextUtils
8
7
import android.util.Log
9
8
import com.android.settings.R;
9
+ import java.util.Optional
10
10
11
11
/* *
12
12
* Provides system-wide config for setup wizard screens.
@@ -30,8 +30,11 @@ class SudConfigProvider : NonRelationalProvider() {
30
30
private lateinit var defaultThemeString: String
31
31
32
32
override fun onCreate (): Boolean {
33
- defaultThemeString = SystemProperties .get(" setupwizard.theme" )
34
- if (TextUtils .isEmpty(defaultThemeString)) defaultThemeString = " glif_v4_light"
33
+ // returns value of setupwizard.theme sysprop
34
+ val theme: Optional <String > = android.sysprop.SetupWizardProperties .theme()
35
+ // setupwizard.theme should always be set to prevent inconsistencies in setupdesign UIs
36
+ check(theme.isPresent) { " missing setupwizard.theme sysprop" }
37
+ defaultThemeString = theme.get()
35
38
return true
36
39
}
37
40
You can’t perform that action at this time.
0 commit comments