Commit 0ed93907 authored by wanglei's avatar wanglei

...

parent d96b2308
...@@ -39,7 +39,6 @@ class NewSplashActivity : BaseActivity<ActivityLayoutSplashBinding>(), ...@@ -39,7 +39,6 @@ class NewSplashActivity : BaseActivity<ActivityLayoutSplashBinding>(),
private var mProgressManager: ProgressManager? = null private var mProgressManager: ProgressManager? = null
override fun initView() { override fun initView() {
cancelNotification()
initStatusBar() initStatusBar()
if (isDestroyed) { if (isDestroyed) {
return return
...@@ -133,19 +132,5 @@ class NewSplashActivity : BaseActivity<ActivityLayoutSplashBinding>(), ...@@ -133,19 +132,5 @@ class NewSplashActivity : BaseActivity<ActivityLayoutSplashBinding>(),
isPause = true isPause = true
} }
private fun cancelNotification() {
var jumpType = intent.getIntExtra("type", 0)
if (jumpType == 0) {
val uri = intent.data
val str = (uri?.getQueryParameter("type") ?: "0")
jumpType = str.toIntOrNull() ?: 0
}
LogEx.logDebug(TAG, "jumpType=$jumpType")
if (jumpType != 0) {
val cancelIntent = Intent(this, CloseNotificationReceiver::class.java)
cancelIntent.action = CloseNotificationReceiver.action
cancelIntent.putExtra("notificationId", NotificationHelper.notificationId)
sendBroadcast(cancelIntent)
}
}
} }
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment