Commit b7d708f4 authored by wanglei's avatar wanglei

...

parent 7be3137e
...@@ -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) sendCustomNotification(context, intent, bigRemoteViews, smallRemoteViews, where)
} }
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) sendCustomNotification(context, intent, bigRemoteViews, smallRemoteViews, where)
} }
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) sendCustomNotification(context, intent, bigRemoteViews, smallRemoteViews, where)
} }
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) sendCustomNotification(context, intent, bigRemoteViews, smallRemoteViews, where)
} }
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) sendCustomNotification(context, intent, bigRemoteViews, smallRemoteViews, where)
} }
} }
} }
...@@ -187,7 +187,7 @@ object NotificationUiUtil { ...@@ -187,7 +187,7 @@ object NotificationUiUtil {
context: Context, context: Context,
intent: Intent, intent: Intent,
bigRemoteViews: RemoteViews, bigRemoteViews: RemoteViews,
smallRemoteViews: RemoteViews smallRemoteViews: RemoteViews, where: String
) { ) {
val notificationManager = context.getSystemService(Context.NOTIFICATION_SERVICE) as NotificationManager val notificationManager = context.getSystemService(Context.NOTIFICATION_SERVICE) as NotificationManager
...@@ -244,6 +244,7 @@ object NotificationUiUtil { ...@@ -244,6 +244,7 @@ object NotificationUiUtil {
notificationManager.notify(NOTIFICATION_ID, builder.build()) notificationManager.notify(NOTIFICATION_ID, builder.build())
EventUtils.event("Notification_Popup", "where=$where")
//当天次数加一 //当天次数加一
dayPopupCount += dayPopupCount + 1 dayPopupCount += 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