Commit b3860549 authored by wanglei's avatar wanglei

[拆包]ui

parent 22681b7b
......@@ -10,6 +10,7 @@ import com.base.appzxhy.bean.FeatureBean.Companion.LARGE_FILE_CLEAN
import com.base.appzxhy.bean.FeatureBean.Companion.PHOTO_COMPRESSION
import com.base.appzxhy.bean.FeatureBean.Companion.SCREENSHOT_CLEAN
import com.base.appzxhy.bean.FeatureBean.Companion.SIMILAR_PHOTOS
import com.base.appzxhy.bean.FeatureBean.Companion.UNINSTALL_APP
import com.base.appzxhy.bean.push.NotificationSendBean
import com.base.appzxhy.bean.push.NotificationSendBean.Companion.POPUP_WHERE_WORK_MANAGER
import com.base.appzxhy.bean.config.PopupConfigBean.Companion.popupConfigBean
......@@ -203,6 +204,7 @@ object MyNotificationManager {
// ACTION_ID_TEST,
JUNK_CLEAN,
SCREENSHOT_CLEAN,
UNINSTALL_APP,
LARGE_FILE_CLEAN,
PHOTO_COMPRESSION,
BATTERY_INFO,
......
......@@ -19,6 +19,7 @@ import com.base.appzxhy.bean.FeatureBean.Companion.LARGE_FILE_CLEAN
import com.base.appzxhy.bean.FeatureBean.Companion.PHOTO_COMPRESSION
import com.base.appzxhy.bean.FeatureBean.Companion.SCREENSHOT_CLEAN
import com.base.appzxhy.bean.FeatureBean.Companion.SIMILAR_PHOTOS
import com.base.appzxhy.bean.FeatureBean.Companion.UNINSTALL_APP
import com.base.appzxhy.bean.push.NotificationSendBean
import com.base.appzxhy.bean.config.PopupConfigBean
import com.base.appzxhy.ui.splash.SplashActivity
......@@ -83,6 +84,19 @@ object NotificationUiUtil {
// debugAction.invoke(this)
// }
// }
UNINSTALL_APP -> {
val text = testNotificationId + context.getString(R.string.notify_uninstall_app)
sendBean.smallRemoteViews = RemoteViews(context.packageName, R.layout.notification_common_small).apply {
setTextViewText(R.id.tv1, text)
setImageViewResource(R.id.ivIcon, R.drawable.icon_app_uninstall)
debugAction.invoke(this)
}
sendBean.bigRemoteViews = RemoteViews(context.packageName, R.layout.notification_common_large).apply {
setTextViewText(R.id.tv1, text)
setImageViewResource(R.id.ivIcon, R.drawable.icon_app_uninstall)
debugAction.invoke(this)
}
}
BATTERY_INFO -> {
val text = testNotificationId + context.getString(R.string.notify_battery_info)
......
......@@ -247,6 +247,7 @@ Please rest assured that we will handle your information in strict accordance wi
<string name="experience_it_immediately">Experience it immediately</string>
<string name="screenshot">Screenshot</string>
<string name="exit_uninstall_app_content">Exit Uninstall App? Unused applications may occupy phone storage</string>
<string name="notify_uninstall_app">Uninstall unused applications save phone storage.</string>
</resources>
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