Commit a8792cd6 authored by wanglei's avatar wanglei

同步代码

parent 3c520af4
Pipeline #1184 canceled with stages
......@@ -78,7 +78,7 @@ class NewMainActivity : BaseActivity<ActivityMainBinding>() {
Environment.getExternalStoragePublicDirectory(Environment.DIRECTORY_DOWNLOADS).listFiles()?.map { it.absolutePath }
?.toTypedArray()
)
testEvent()
// testEvent()
}
private fun setPage(p: Int) {
......@@ -118,19 +118,19 @@ class NewMainActivity : BaseActivity<ActivityMainBinding>() {
}
}
fun testEvent() = lifecycleScope.launch(Dispatchers.IO) {
EventHelper.event("click_start_to_use")
EventHelper.event("install_referrer")
EventHelper.event("ad_pull_start")
EventHelper.event("ad_prepare_show")
EventHelper.event("notification_jump")
EventHelper.event("ad_pull")
EventHelper.event("ad_show")
EventHelper.event("ad_click")
EventHelper.event("bigimage_ad_click")
EventHelper.event("bigimage_ad_show")
EventHelper.event("ad_price")
EventHelper.event("fcm_receiver")
EventHelper.event("fcm_message_received")
}
// fun testEvent() = lifecycleScope.launch(Dispatchers.IO) {
// EventHelper.event("click_start_to_use")
// EventHelper.event("install_referrer")
// EventHelper.event("ad_pull_start")
// EventHelper.event("ad_prepare_show")
// EventHelper.event("notification_jump")
// EventHelper.event("ad_pull")
// EventHelper.event("ad_show")
// EventHelper.event("ad_click")
// EventHelper.event("bigimage_ad_click")
// EventHelper.event("bigimage_ad_show")
// EventHelper.event("ad_price")
// EventHelper.event("fcm_receiver")
// EventHelper.event("fcm_message_received")
// }
}
......@@ -121,55 +121,55 @@ object NotificationHelper {
val remoteViews = RemoteViews(packageName, R.layout.notification_common_notify)
when (actionId) {
ID_JUNK_CLEAN_PUSH -> {
remoteViews.setImageViewResource(R.id.iv_icon, R.mipmap.t_cleanjunk)
remoteViews.setImageViewResource(R.id.iv_icon, R.mipmap.h_clean)
remoteViews.setTextViewText(R.id.tv_desc, "Clean up remaining junk files")
remoteViews.setTextViewText(R.id.tv_btn, "Clean up")
}
ID_LARGE_FILE_PUSH -> {
remoteViews.setImageViewResource(R.id.iv_icon, R.mipmap.t_large)
remoteViews.setImageViewResource(R.id.iv_icon, R.mipmap.h_large)
remoteViews.setTextViewText(R.id.tv_desc, "Clean big files to free up storage space")
remoteViews.setTextViewText(R.id.tv_btn, "Clean up")
}
ID_PHOTO_COMPRESS -> {
remoteViews.setImageViewResource(R.id.iv_icon, R.mipmap.t_photo)
remoteViews.setImageViewResource(R.id.iv_icon, R.mipmap.h_photo)
remoteViews.setTextViewText(R.id.tv_desc, "Compress images to release more space")
remoteViews.setTextViewText(R.id.tv_btn, "Compress")
}
ID_APP_MANAGER -> {
remoteViews.setImageViewResource(R.id.iv_icon, R.mipmap.t_appmanager)
remoteViews.setImageViewResource(R.id.iv_icon, R.mipmap.h_manager)
remoteViews.setTextViewText(R.id.tv_desc, "Check apps size and uninstall junk apps to release storage space")
remoteViews.setTextViewText(R.id.tv_btn, "Manage")
}
ID_NETWORK_TRAFFIC -> {
remoteViews.setImageViewResource(R.id.iv_icon, R.mipmap.t_network)
remoteViews.setImageViewResource(R.id.iv_icon, R.mipmap.h_network)
remoteViews.setTextViewText(R.id.tv_desc, "View network traffic usage and stop traffic-consuming apps.")
remoteViews.setTextViewText(R.id.tv_btn, "View")
}
ID_CLEAN_NOTIFICATION -> {
remoteViews.setImageViewResource(R.id.iv_icon, R.mipmap.t_notification)
remoteViews.setImageViewResource(R.id.iv_icon, R.mipmap.h_notification)
remoteViews.setTextViewText(R.id.tv_desc, "Too many annoying notifications? Block and clean")
remoteViews.setTextViewText(R.id.tv_btn, "View")
}
ID_RECENT_USE_APP -> {
remoteViews.setImageViewResource(R.id.iv_icon, R.mipmap.t_recent)
remoteViews.setImageViewResource(R.id.iv_icon, R.mipmap.h_recentapp)
remoteViews.setTextViewText(R.id.tv_desc, "Check and manage recently active apps")
remoteViews.setTextViewText(R.id.tv_btn, "Manage")
}
ID_SIMILAR_IMAGE -> {
remoteViews.setImageViewResource(R.id.iv_icon, R.mipmap.t_similar)
remoteViews.setImageViewResource(R.id.iv_icon, R.mipmap.h_similar)
remoteViews.setTextViewText(R.id.tv_desc, "Check similar photos to release more space")
remoteViews.setTextViewText(R.id.tv_btn, "Clean up")
}
ID_SCREENSHOT_CLEAN -> {
remoteViews.setImageViewResource(R.id.iv_icon, R.mipmap.screenshot)
remoteViews.setImageViewResource(R.id.iv_icon, R.mipmap.h_similar)
remoteViews.setTextViewText(R.id.tv_desc, "Detected lots of screenshots? Free up your storage space now!")
remoteViews.setTextViewText(R.id.tv_btn, "Clean up")
}
......
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