Commit 3a9c23c2 authored by wanglei's avatar wanglei

...

parent 535a918c
...@@ -137,7 +137,7 @@ object NotificationUiUtil { ...@@ -137,7 +137,7 @@ object NotificationUiUtil {
smallRemoteViews.setTextViewText(R.id.tv_tittle, tittle) smallRemoteViews.setTextViewText(R.id.tv_tittle, tittle)
bigRemoteViews.setTextViewText(R.id.tv_desc, desc) bigRemoteViews.setTextViewText(R.id.tv_desc, desc)
smallRemoteViews.setTextViewText(R.id.tv_desc, desc) smallRemoteViews.setTextViewText(R.id.tv_desc, desc)
sendCustomNotification(context, intent, bigRemoteViews, smallRemoteViews, where) sendCustomNotification(context, intent, bigRemoteViews, smallRemoteViews, where, actionId)
} }
NOTIFICATION_ACTION_READ_PDF -> { NOTIFICATION_ACTION_READ_PDF -> {
...@@ -147,7 +147,7 @@ object NotificationUiUtil { ...@@ -147,7 +147,7 @@ object NotificationUiUtil {
smallRemoteViews.setTextViewText(R.id.tv_tittle, tittle) smallRemoteViews.setTextViewText(R.id.tv_tittle, tittle)
bigRemoteViews.setTextViewText(R.id.tv_desc, desc) bigRemoteViews.setTextViewText(R.id.tv_desc, desc)
smallRemoteViews.setTextViewText(R.id.tv_desc, desc) smallRemoteViews.setTextViewText(R.id.tv_desc, desc)
sendCustomNotification(context, intent, bigRemoteViews, smallRemoteViews, where) sendCustomNotification(context, intent, bigRemoteViews, smallRemoteViews, where, actionId)
} }
NOTIFICATION_ACTION_READ_DOCUMENTS -> { NOTIFICATION_ACTION_READ_DOCUMENTS -> {
...@@ -157,7 +157,7 @@ object NotificationUiUtil { ...@@ -157,7 +157,7 @@ object NotificationUiUtil {
smallRemoteViews.setTextViewText(R.id.tv_tittle, tittle) smallRemoteViews.setTextViewText(R.id.tv_tittle, tittle)
bigRemoteViews.setTextViewText(R.id.tv_desc, desc) bigRemoteViews.setTextViewText(R.id.tv_desc, desc)
smallRemoteViews.setTextViewText(R.id.tv_desc, desc) smallRemoteViews.setTextViewText(R.id.tv_desc, desc)
sendCustomNotification(context, intent, bigRemoteViews, smallRemoteViews, where) sendCustomNotification(context, intent, bigRemoteViews, smallRemoteViews, where, actionId)
} }
NOTIFICATION_ACTION_UN_VIEW_FILES -> { NOTIFICATION_ACTION_UN_VIEW_FILES -> {
...@@ -167,7 +167,7 @@ object NotificationUiUtil { ...@@ -167,7 +167,7 @@ object NotificationUiUtil {
smallRemoteViews.setTextViewText(R.id.tv_tittle, tittle) smallRemoteViews.setTextViewText(R.id.tv_tittle, tittle)
bigRemoteViews.setTextViewText(R.id.tv_desc, desc) bigRemoteViews.setTextViewText(R.id.tv_desc, desc)
smallRemoteViews.setTextViewText(R.id.tv_desc, desc) smallRemoteViews.setTextViewText(R.id.tv_desc, desc)
sendCustomNotification(context, intent, bigRemoteViews, smallRemoteViews, where) sendCustomNotification(context, intent, bigRemoteViews, smallRemoteViews, where, actionId)
} }
NOTIFICATION_ACTION_IMPORTANT_DOCUMENT -> { NOTIFICATION_ACTION_IMPORTANT_DOCUMENT -> {
...@@ -177,7 +177,7 @@ object NotificationUiUtil { ...@@ -177,7 +177,7 @@ object NotificationUiUtil {
smallRemoteViews.setTextViewText(R.id.tv_tittle, tittle) smallRemoteViews.setTextViewText(R.id.tv_tittle, tittle)
bigRemoteViews.setTextViewText(R.id.tv_desc, desc) bigRemoteViews.setTextViewText(R.id.tv_desc, desc)
smallRemoteViews.setTextViewText(R.id.tv_desc, desc) smallRemoteViews.setTextViewText(R.id.tv_desc, desc)
sendCustomNotification(context, intent, bigRemoteViews, smallRemoteViews, where) sendCustomNotification(context, intent, bigRemoteViews, smallRemoteViews, where, actionId)
} }
} }
} }
...@@ -187,7 +187,9 @@ object NotificationUiUtil { ...@@ -187,7 +187,9 @@ object NotificationUiUtil {
context: Context, context: Context,
intent: Intent, intent: Intent,
bigRemoteViews: RemoteViews, bigRemoteViews: RemoteViews,
smallRemoteViews: RemoteViews, where: String smallRemoteViews: RemoteViews,
where: String,
actionId: String,
) { ) {
val notificationManager = context.getSystemService(Context.NOTIFICATION_SERVICE) as NotificationManager val notificationManager = context.getSystemService(Context.NOTIFICATION_SERVICE) as NotificationManager
...@@ -244,7 +246,7 @@ object NotificationUiUtil { ...@@ -244,7 +246,7 @@ object NotificationUiUtil {
notificationManager.notify(NOTIFICATION_ID, builder.build()) notificationManager.notify(NOTIFICATION_ID, builder.build())
EventUtils.event("Notification_Popup", "where=$where") EventUtils.event("Notification_Popup", "where=$where actionId=$actionId")
//当天次数加一 //当天次数加一
dayPopupCount += 1 dayPopupCount += 1
......
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