|
@@ -69,6 +69,7 @@ class FoodCookingApp : BaseApp() {
|
|
|
)
|
|
|
WindowManager.getInstance().init(this, OptionFactory())
|
|
|
val isNight = !isNightTheme()
|
|
|
+ //切换主题,theme=0 night= false 是0000的主题,而且需要AndroidManifest.xml主题设置为 android:theme="@style/SplashTheme"
|
|
|
ThemeSkinService.getInstance().switchThemeSkin(1)
|
|
|
setNightTheme(true)
|
|
|
SerialPortUtils.init()
|
|
@@ -90,7 +91,7 @@ class FoodCookingApp : BaseApp() {
|
|
|
(1000 * 60 * minute).toInt()
|
|
|
)
|
|
|
|
|
|
- Settings.Secure.putInt(contentResolver,Settings.Secure.INSTALL_NON_MARKET_APPS,1)
|
|
|
+ Settings.Secure.putInt(contentResolver, Settings.Secure.INSTALL_NON_MARKET_APPS, 1)
|
|
|
|
|
|
val uri: Uri = Settings.System
|
|
|
.getUriFor(Settings.System.SCREEN_OFF_TIMEOUT)
|