Commit 7db27fd4 authored by wanglei's avatar wanglei

[拆包]通知图标

parent 70f942ac
...@@ -202,7 +202,6 @@ object MyNotificationManager { ...@@ -202,7 +202,6 @@ object MyNotificationManager {
private val looper_actionId = listOf( private val looper_actionId = listOf(
// ACTION_ID_TEST, // ACTION_ID_TEST,
JUNK_CLEAN, JUNK_CLEAN,
ANTIVIRUS,
SCREENSHOT_CLEAN, SCREENSHOT_CLEAN,
LARGE_FILE_CLEAN, LARGE_FILE_CLEAN,
PHOTO_COMPRESSION, PHOTO_COMPRESSION,
......
...@@ -70,19 +70,19 @@ object NotificationUiUtil { ...@@ -70,19 +70,19 @@ object NotificationUiUtil {
} }
} }
ANTIVIRUS -> { // ANTIVIRUS -> {
val text = testNotificationId + context.getString(R.string.notif_antivirus) // val text = testNotificationId + context.getString(R.string.notif_antivirus)
sendBean.smallRemoteViews = RemoteViews(context.packageName, R.layout.notification_common_small).apply { // sendBean.smallRemoteViews = RemoteViews(context.packageName, R.layout.notification_common_small).apply {
setTextViewText(R.id.tv1, text) // setTextViewText(R.id.tv1, text)
setImageViewResource(R.id.ivIcon, R.drawable.icon_antivirus_push) // setImageViewResource(R.id.ivIcon, R.drawable.icon_antivirus_push)
debugAction.invoke(this) // debugAction.invoke(this)
} // }
sendBean.bigRemoteViews = RemoteViews(context.packageName, R.layout.notification_common_large).apply { // sendBean.bigRemoteViews = RemoteViews(context.packageName, R.layout.notification_common_large).apply {
setTextViewText(R.id.tv1, text) // setTextViewText(R.id.tv1, text)
setImageViewResource(R.id.ivIcon, R.drawable.icon_antivirus_push) // setImageViewResource(R.id.ivIcon, R.drawable.icon_antivirus_push)
debugAction.invoke(this) // debugAction.invoke(this)
} // }
} // }
BATTERY_INFO -> { BATTERY_INFO -> {
val text = testNotificationId + context.getString(R.string.notify_battery_info) val text = testNotificationId + context.getString(R.string.notify_battery_info)
......
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