夜间模式去除影响
This commit is contained in:
parent
23b8714d2f
commit
e432812ce4
@ -57,11 +57,11 @@ class App : Application() {
|
||||
EsignSdk.getInstance().init(AppConfig.E_KEY, AppConfig.E_LICENSE)
|
||||
initUmeng()
|
||||
|
||||
var pendingIntent: PendingIntent = getActivity(
|
||||
applicationContext, 0,
|
||||
Intent(applicationContext, HomeActivity::class.java),
|
||||
FLAG_UPDATE_CURRENT
|
||||
)
|
||||
// var pendingIntent: PendingIntent = getActivity(
|
||||
// applicationContext, 0,
|
||||
// Intent(applicationContext, HomeActivity::class.java),
|
||||
// FLAG_UPDATE_CURRENT
|
||||
// )
|
||||
// Cactus.instance
|
||||
// .isDebug(true)
|
||||
// //.setTitle("大河好运")
|
||||
@ -90,36 +90,6 @@ class App : Application() {
|
||||
// }
|
||||
// })
|
||||
// .register(this)
|
||||
|
||||
// 定义前台通知的默认样式
|
||||
// val foregroundNotification = ForegroundNotification(
|
||||
// "大河好运2", "大河好运司机端为您提供服务", R.mipmap.app_icon
|
||||
// ) { context, intent ->
|
||||
// // 定义前台服务的通知点击事件
|
||||
//// ActivityUtils.startActivity(applicationContext,HomeActivity::class.java)
|
||||
// }
|
||||
//// 启动保活服务
|
||||
// KeepLive.startWork(this,
|
||||
// KeepLive.RunMode.ENERGY,
|
||||
// foregroundNotification, //你需要保活的服务,如socket连接、定时任务等,建议不用匿名内部类的方式在这里写
|
||||
// object : UpLocationService23() {
|
||||
// /**
|
||||
// * 运行中
|
||||
// * 由于服务可能会多次自动启动,该方法可能重复调用
|
||||
// */
|
||||
// override fun onWorking() {
|
||||
// // do something
|
||||
// }
|
||||
//
|
||||
// /**
|
||||
// * 服务终止
|
||||
// * 由于服务可能会被多次终止,该方法可能重复调用,需同onWorking配套使用,如注册和注销broadcast
|
||||
// */
|
||||
// override fun onStop() {
|
||||
// // do something
|
||||
// }
|
||||
// }
|
||||
// )
|
||||
}
|
||||
|
||||
override fun attachBaseContext(base: Context) {
|
||||
|
@ -1,16 +0,0 @@
|
||||
<resources xmlns:tools="http://schemas.android.com/tools">
|
||||
<!-- Base application theme. -->
|
||||
<style name="Theme.GLDriver" parent="Theme.MaterialComponents.DayNight.NoActionBar.Bridge">
|
||||
<!-- Primary brand color. -->
|
||||
<item name="colorPrimary">@color/purple_200</item>
|
||||
<item name="colorPrimaryVariant">@color/purple_700</item>
|
||||
<item name="colorOnPrimary">@color/black</item>
|
||||
<!-- Secondary brand color. -->
|
||||
<item name="colorSecondary">@color/teal_200</item>
|
||||
<item name="colorSecondaryVariant">@color/teal_200</item>
|
||||
<item name="colorOnSecondary">@color/black</item>
|
||||
<!-- Status bar color. -->
|
||||
<item name="android:statusBarColor" tools:targetApi="l">?attr/colorPrimaryVariant</item>
|
||||
<!-- Customize your theme here. -->
|
||||
</style>
|
||||
</resources>
|
@ -1,6 +1,6 @@
|
||||
<resources xmlns:tools="http://schemas.android.com/tools">
|
||||
<!-- Base application theme. -->
|
||||
<style name="Theme.GLDriver" parent="Theme.MaterialComponents.DayNight.NoActionBar.Bridge">
|
||||
<style name="Theme.GLDriver" parent="Theme.MaterialComponents.Light.NoActionBar.Bridge">
|
||||
<!-- Primary brand color. -->
|
||||
<item name="colorPrimary">@color/purple_500</item>
|
||||
<item name="colorPrimaryVariant">@color/purple_700</item>
|
||||
@ -14,7 +14,7 @@
|
||||
<!-- Customize your theme here. -->
|
||||
</style>
|
||||
|
||||
<style name="Theme.Splash" parent="Theme.MaterialComponents.DayNight.NoActionBar.Bridge">
|
||||
<style name="Theme.Splash" parent="Theme.MaterialComponents.Light.NoActionBar.Bridge">
|
||||
<item name="windowNoTitle">true</item>
|
||||
<item name="windowActionBar">false</item>
|
||||
<item name="android:windowContentOverlay">@null</item>
|
||||
|
Loading…
Reference in New Issue
Block a user