Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Sign in / Register
Toggle navigation
E
Easy File Manager Junk
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wanglei
Easy File Manager Junk
Commits
a8792cd6
Commit
a8792cd6
authored
Jun 21, 2024
by
wanglei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
同步代码
parent
3c520af4
Pipeline
#1184
canceled with stages
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
25 additions
and
25 deletions
+25
-25
NewMainActivity.kt
...com/base/easyfilemanager/activity/home/NewMainActivity.kt
+16
-16
NotificationHelper.kt
...va/com/base/easyfilemanager/display/NotificationHelper.kt
+9
-9
No files found.
app/src/main/java/com/base/easyfilemanager/activity/home/NewMainActivity.kt
View file @
a8792cd6
...
...
@@ -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")
//
}
}
app/src/main/java/com/base/easyfilemanager/display/NotificationHelper.kt
View file @
a8792cd6
...
...
@@ -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_app
manager
)
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"
)
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment