|
@@ -1,6 +1,7 @@
|
|
package com.wdkl.ncs.android.component.home.activity
|
|
package com.wdkl.ncs.android.component.home.activity
|
|
|
|
|
|
import android.content.Context
|
|
import android.content.Context
|
|
|
|
+import android.os.Build
|
|
import android.os.Vibrator
|
|
import android.os.Vibrator
|
|
import android.util.Log
|
|
import android.util.Log
|
|
import android.view.View
|
|
import android.view.View
|
|
@@ -78,8 +79,10 @@ class NewEventListActivity : BaseActivity<NewEventListPresenter, ActivityEventLi
|
|
|
|
|
|
override fun onWindowFocusChanged(hasFocus: Boolean) {
|
|
override fun onWindowFocusChanged(hasFocus: Boolean) {
|
|
super.onWindowFocusChanged(hasFocus)
|
|
super.onWindowFocusChanged(hasFocus)
|
|
- if (!Constants.oldEvent) {
|
|
|
|
- window.decorView.systemUiVisibility = screen_flags
|
|
|
|
|
|
+ if ("Redmi".equals(Build.BRAND)) {
|
|
|
|
+ if (!Constants.oldEvent) {
|
|
|
|
+ window.decorView.systemUiVisibility = screen_flags
|
|
|
|
+ }
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
@@ -89,8 +92,10 @@ class NewEventListActivity : BaseActivity<NewEventListPresenter, ActivityEventLi
|
|
|
|
|
|
override fun onResume() {
|
|
override fun onResume() {
|
|
super.onResume()
|
|
super.onResume()
|
|
- if (!Constants.oldEvent) {
|
|
|
|
- window.decorView.systemUiVisibility = screen_flags
|
|
|
|
|
|
+ if ("Redmi".equals(Build.BRAND)) {
|
|
|
|
+ if (!Constants.oldEvent) {
|
|
|
|
+ window.decorView.systemUiVisibility = screen_flags
|
|
|
|
+ }
|
|
}
|
|
}
|
|
WdKeepAliveService.mNewEventListActive = true
|
|
WdKeepAliveService.mNewEventListActive = true
|
|
renderData(Constants.eventList)
|
|
renderData(Constants.eventList)
|