Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Sign in / Register
Toggle navigation
E
Easy Cleaner 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 Cleaner Junk
Commits
1a2d2bb9
Commit
1a2d2bb9
authored
Jul 24, 2024
by
maxiaoliang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改常驻通知栏
parent
7c0391a5
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
34 additions
and
34 deletions
+34
-34
PermanentNotificationService.kt
...y/easycleanerjunk/service/PermanentNotificationService.kt
+5
-6
reminder_layout_notification_big_notify.xml
...in/res/layout/reminder_layout_notification_big_notify.xml
+15
-15
reminder_layout_notification_notify.xml
...c/main/res/layout/reminder_layout_notification_notify.xml
+14
-13
cleanjunk.png
app/src/main/res/mipmap-xxhdpi/cleanjunk.png
+0
-0
largefile_ss.png
app/src/main/res/mipmap-xxhdpi/largefile_ss.png
+0
-0
manager_ss.png
app/src/main/res/mipmap-xxhdpi/manager_ss.png
+0
-0
whatsapp_ss.png
app/src/main/res/mipmap-xxhdpi/whatsapp_ss.png
+0
-0
No files found.
app/src/main/java/com/test/easy/easycleanerjunk/service/PermanentNotificationService.kt
View file @
1a2d2bb9
...
@@ -6,7 +6,6 @@ import android.app.NotificationChannel
...
@@ -6,7 +6,6 @@ import android.app.NotificationChannel
import
android.app.NotificationManager
import
android.app.NotificationManager
import
android.app.PendingIntent
import
android.app.PendingIntent
import
android.app.Service
import
android.app.Service
import
android.content.ComponentName
import
android.content.Context
import
android.content.Context
import
android.content.Intent
import
android.content.Intent
import
android.graphics.BitmapFactory
import
android.graphics.BitmapFactory
...
@@ -15,11 +14,11 @@ import android.os.IBinder
...
@@ -15,11 +14,11 @@ import android.os.IBinder
import
android.widget.RemoteViews
import
android.widget.RemoteViews
import
androidx.core.app.NotificationCompat
import
androidx.core.app.NotificationCompat
import
com.test.easy.easycleanerjunk.R
import
com.test.easy.easycleanerjunk.R
import
com.test.easy.easycleanerjunk.activity.scanjunk.PrepareScanActivity
import
com.test.easy.easycleanerjunk.activity.appmanager.AppManagerAnimationActivity
import
com.test.easy.easycleanerjunk.activity.appmanager.AppManagerAnimationActivity
import
com.test.easy.easycleanerjunk.activity.batteryinfo.BatteryInfoAnimationActivity
import
com.test.easy.easycleanerjunk.activity.home.NewMainActivity
import
com.test.easy.easycleanerjunk.activity.home.NewMainActivity
import
com.test.easy.easycleanerjunk.activity.screenshot.ScreenShotAnimationActivity
import
com.test.easy.easycleanerjunk.activity.largefile.LargeFileAnimationActivity
import
com.test.easy.easycleanerjunk.activity.scanjunk.PrepareScanActivity
import
com.test.easy.easycleanerjunk.activity.whatsapp.WhatsAppCleanerAnimationActivity
import
com.test.easy.easycleanerjunk.helps.ConfigHelper
import
com.test.easy.easycleanerjunk.helps.ConfigHelper
...
@@ -95,7 +94,7 @@ class PermanentNotificationService : Service() {
...
@@ -95,7 +94,7 @@ class PermanentNotificationService : Service() {
contentView
.
setOnClickPendingIntent
(
R
.
id
.
id_app_manager
,
pendingIntent2
)
contentView
.
setOnClickPendingIntent
(
R
.
id
.
id_app_manager
,
pendingIntent2
)
expendView
.
setOnClickPendingIntent
(
R
.
id
.
id_app_manager
,
pendingIntent2
)
expendView
.
setOnClickPendingIntent
(
R
.
id
.
id_app_manager
,
pendingIntent2
)
val
intent3
=
Intent
(
context
,
BatteryInfo
AnimationActivity
::
class
.
java
)
val
intent3
=
Intent
(
context
,
WhatsAppCleaner
AnimationActivity
::
class
.
java
)
val
pendingIntent3
=
val
pendingIntent3
=
PendingIntent
.
getActivity
(
context
,
0
,
intent3
,
PendingIntent
.
FLAG_IMMUTABLE
)
PendingIntent
.
getActivity
(
context
,
0
,
intent3
,
PendingIntent
.
FLAG_IMMUTABLE
)
contentView
.
setOnClickPendingIntent
(
R
.
id
.
id_battery_info
,
pendingIntent3
)
contentView
.
setOnClickPendingIntent
(
R
.
id
.
id_battery_info
,
pendingIntent3
)
...
@@ -109,7 +108,7 @@ class PermanentNotificationService : Service() {
...
@@ -109,7 +108,7 @@ class PermanentNotificationService : Service() {
// contentView.setOnClickPendingIntent(R.id.id_screenshot, pendingIntent4)
// contentView.setOnClickPendingIntent(R.id.id_screenshot, pendingIntent4)
// expendView.setOnClickPendingIntent(R.id.id_screenshot, pendingIntent4)
// expendView.setOnClickPendingIntent(R.id.id_screenshot, pendingIntent4)
val
intent4
=
Intent
(
context
,
ScreenShot
AnimationActivity
::
class
.
java
)
val
intent4
=
Intent
(
context
,
LargeFile
AnimationActivity
::
class
.
java
)
val
pendingIntent4
=
val
pendingIntent4
=
PendingIntent
.
getActivity
(
context
,
0
,
intent4
,
PendingIntent
.
FLAG_IMMUTABLE
)
PendingIntent
.
getActivity
(
context
,
0
,
intent4
,
PendingIntent
.
FLAG_IMMUTABLE
)
contentView
.
setOnClickPendingIntent
(
R
.
id
.
id_screenshot
,
pendingIntent4
)
contentView
.
setOnClickPendingIntent
(
R
.
id
.
id_screenshot
,
pendingIntent4
)
...
...
app/src/main/res/layout/reminder_layout_notification_big_notify.xml
View file @
1a2d2bb9
...
@@ -46,10 +46,9 @@
...
@@ -46,10 +46,9 @@
android:textSize=
"12sp"
android:textSize=
"12sp"
tools:ignore=
"HardcodedText"
/>
tools:ignore=
"HardcodedText"
/>
</LinearLayout>
</LinearLayout>
<!--电池-->
<!--app管理-->
<LinearLayout
<LinearLayout
android:id=
"@+id/id_
app_manager
"
android:id=
"@+id/id_
battery_info
"
android:layout_width=
"0dp"
android:layout_width=
"0dp"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_weight=
"1"
android:layout_weight=
"1"
...
@@ -61,69 +60,70 @@
...
@@ -61,69 +60,70 @@
android:layout_width=
"40dp"
android:layout_width=
"40dp"
android:layout_height=
"40dp"
android:layout_height=
"40dp"
android:layout_marginBottom=
"6dp"
android:layout_marginBottom=
"6dp"
android:src=
"@mipmap/
manage
_ss"
android:src=
"@mipmap/
whatsapp
_ss"
tools:ignore=
"ContentDescription"
/>
tools:ignore=
"ContentDescription"
/>
<TextView
<TextView
android:layout_width=
"wrap_content"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:text=
"
Manager
"
android:text=
"
WhatsApp
"
android:textColor=
"#666666"
android:textColor=
"#666666"
android:textSize=
"12sp"
android:textSize=
"12sp"
tools:ignore=
"HardcodedText"
/>
tools:ignore=
"HardcodedText"
/>
</LinearLayout>
</LinearLayout>
<!--
电池
-->
<!--
截图
-->
<LinearLayout
<LinearLayout
android:id=
"@+id/id_
battery_info
"
android:id=
"@+id/id_
screenshot
"
android:layout_width=
"0dp"
android:layout_width=
"0dp"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_weight=
"1"
android:layout_weight=
"1"
android:gravity=
"center"
android:gravity=
"center"
android:orientation=
"vertical"
android:orientation=
"vertical"
android:visibility=
"visible"
tools:ignore=
"UseCompoundDrawables"
>
tools:ignore=
"UseCompoundDrawables"
>
<ImageView
<ImageView
android:layout_width=
"40dp"
android:layout_width=
"40dp"
android:layout_height=
"40dp"
android:layout_height=
"40dp"
android:layout_marginBottom=
"6dp"
android:layout_marginBottom=
"6dp"
android:src=
"@mipmap/
battery
_ss"
android:src=
"@mipmap/
largefile
_ss"
tools:ignore=
"ContentDescription"
/>
tools:ignore=
"ContentDescription"
/>
<TextView
<TextView
android:layout_width=
"wrap_content"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:text=
"
Battery
"
android:text=
"
Large File
"
android:textColor=
"#666666"
android:textColor=
"#666666"
android:textSize=
"12sp"
android:textSize=
"12sp"
tools:ignore=
"HardcodedText"
/>
tools:ignore=
"HardcodedText"
/>
</LinearLayout>
</LinearLayout>
<!--app管理-->
<!--截图-->
<LinearLayout
<LinearLayout
android:id=
"@+id/id_
screenshot
"
android:id=
"@+id/id_
app_manager
"
android:layout_width=
"0dp"
android:layout_width=
"0dp"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_weight=
"1"
android:layout_weight=
"1"
android:gravity=
"center"
android:gravity=
"center"
android:orientation=
"vertical"
android:orientation=
"vertical"
android:visibility=
"visible"
tools:ignore=
"UseCompoundDrawables"
>
tools:ignore=
"UseCompoundDrawables"
>
<ImageView
<ImageView
android:layout_width=
"40dp"
android:layout_width=
"40dp"
android:layout_height=
"40dp"
android:layout_height=
"40dp"
android:layout_marginBottom=
"6dp"
android:layout_marginBottom=
"6dp"
android:src=
"@mipmap/
screenshot
_ss"
android:src=
"@mipmap/
manager
_ss"
tools:ignore=
"ContentDescription"
/>
tools:ignore=
"ContentDescription"
/>
<TextView
<TextView
android:layout_width=
"wrap_content"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:text=
"
Screenshot
"
android:text=
"
APP
"
android:textColor=
"#666666"
android:textColor=
"#666666"
android:textSize=
"12sp"
android:textSize=
"12sp"
tools:ignore=
"HardcodedText"
/>
tools:ignore=
"HardcodedText"
/>
</LinearLayout>
</LinearLayout>
</LinearLayout>
</LinearLayout>
\ No newline at end of file
app/src/main/res/layout/reminder_layout_notification_notify.xml
View file @
1a2d2bb9
...
@@ -48,8 +48,11 @@
...
@@ -48,8 +48,11 @@
</LinearLayout>
</LinearLayout>
<!--app管理-->
<!--app管理-->
<!--电池-->
<LinearLayout
<LinearLayout
android:id=
"@+id/id_
app_manager
"
android:id=
"@+id/id_
battery_info
"
android:layout_width=
"0dp"
android:layout_width=
"0dp"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_weight=
"1"
android:layout_weight=
"1"
...
@@ -61,66 +64,64 @@
...
@@ -61,66 +64,64 @@
android:layout_width=
"40dp"
android:layout_width=
"40dp"
android:layout_height=
"40dp"
android:layout_height=
"40dp"
android:layout_marginBottom=
"6dp"
android:layout_marginBottom=
"6dp"
android:src=
"@mipmap/
manage
_ss"
android:src=
"@mipmap/
whatsapp
_ss"
tools:ignore=
"ContentDescription"
/>
tools:ignore=
"ContentDescription"
/>
<TextView
<TextView
android:layout_width=
"wrap_content"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:text=
"
Manager
"
android:text=
"
WhatsApp
"
android:textColor=
"#666666"
android:textColor=
"#666666"
android:textSize=
"12sp"
android:textSize=
"12sp"
tools:ignore=
"HardcodedText"
/>
tools:ignore=
"HardcodedText"
/>
</LinearLayout>
</LinearLayout>
<!--
电池
-->
<!--
截图
-->
<LinearLayout
<LinearLayout
android:id=
"@+id/id_
battery_info
"
android:id=
"@+id/id_
screenshot
"
android:layout_width=
"0dp"
android:layout_width=
"0dp"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_weight=
"1"
android:layout_weight=
"1"
android:gravity=
"center"
android:gravity=
"center"
android:orientation=
"vertical"
android:orientation=
"vertical"
android:visibility=
"visible"
tools:ignore=
"UseCompoundDrawables"
>
tools:ignore=
"UseCompoundDrawables"
>
<ImageView
<ImageView
android:layout_width=
"40dp"
android:layout_width=
"40dp"
android:layout_height=
"40dp"
android:layout_height=
"40dp"
android:layout_marginBottom=
"6dp"
android:layout_marginBottom=
"6dp"
android:src=
"@mipmap/
battery
_ss"
android:src=
"@mipmap/
largefile
_ss"
tools:ignore=
"ContentDescription"
/>
tools:ignore=
"ContentDescription"
/>
<TextView
<TextView
android:layout_width=
"wrap_content"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:text=
"
Battery
"
android:text=
"
Large File
"
android:textColor=
"#666666"
android:textColor=
"#666666"
android:textSize=
"12sp"
android:textSize=
"12sp"
tools:ignore=
"HardcodedText"
/>
tools:ignore=
"HardcodedText"
/>
</LinearLayout>
</LinearLayout>
<!--截图-->
<LinearLayout
<LinearLayout
android:id=
"@+id/id_
screenshot
"
android:id=
"@+id/id_
app_manager
"
android:layout_width=
"0dp"
android:layout_width=
"0dp"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_weight=
"1"
android:layout_weight=
"1"
android:gravity=
"center"
android:gravity=
"center"
android:orientation=
"vertical"
android:orientation=
"vertical"
android:visibility=
"visible"
tools:ignore=
"UseCompoundDrawables"
>
tools:ignore=
"UseCompoundDrawables"
>
<ImageView
<ImageView
android:layout_width=
"40dp"
android:layout_width=
"40dp"
android:layout_height=
"40dp"
android:layout_height=
"40dp"
android:layout_marginBottom=
"6dp"
android:layout_marginBottom=
"6dp"
android:src=
"@mipmap/
screenshot
_ss"
android:src=
"@mipmap/
manager
_ss"
tools:ignore=
"ContentDescription"
/>
tools:ignore=
"ContentDescription"
/>
<TextView
<TextView
android:layout_width=
"wrap_content"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:text=
"
Screenshot
"
android:text=
"
APP
"
android:textColor=
"#666666"
android:textColor=
"#666666"
android:textSize=
"12sp"
android:textSize=
"12sp"
tools:ignore=
"HardcodedText"
/>
tools:ignore=
"HardcodedText"
/>
...
...
app/src/main/res/mipmap-xxhdpi/cleanjunk.png
0 → 100644
View file @
1a2d2bb9
21.4 KB
app/src/main/res/mipmap-xxhdpi/largefile_ss.png
0 → 100644
View file @
1a2d2bb9
20.2 KB
app/src/main/res/mipmap-xxhdpi/manager_ss.png
0 → 100644
View file @
1a2d2bb9
26.9 KB
app/src/main/res/mipmap-xxhdpi/whatsapp_ss.png
0 → 100644
View file @
1a2d2bb9
26.9 KB
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