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
7b68c308
Commit
7b68c308
authored
Jul 09, 2024
by
wanglei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
...ad
parent
542ae49d
Hide whitespace changes
Inline
Side-by-side
Showing
11 changed files
with
67 additions
and
82 deletions
+67
-82
AndroidManifest.xml
app/src/main/AndroidManifest.xml
+0
-4
MyApplication.kt
.../main/java/com/test/easy/easycleanerjunk/MyApplication.kt
+0
-2
FlashlightService.kt
...om/test/easy/easycleanerjunk/service/FlashlightService.kt
+0
-43
PermanentNotificationService.kt
...y/easycleanerjunk/service/PermanentNotificationService.kt
+13
-7
reminder_layout_notification_big_notify.xml
...in/res/layout/reminder_layout_notification_big_notify.xml
+26
-12
reminder_layout_notification_notify.xml
...c/main/res/layout/reminder_layout_notification_notify.xml
+28
-14
battery_ss.png
app/src/main/res/mipmap-xxhdpi/battery_ss.png
+0
-0
cleanjunk_ss.png
app/src/main/res/mipmap-xxhdpi/cleanjunk_ss.png
+0
-0
manage_ss.png
app/src/main/res/mipmap-xxhdpi/manage_ss.png
+0
-0
screenshot_ss.png
app/src/main/res/mipmap-xxhdpi/screenshot_ss.png
+0
-0
tishi.png
app/src/main/res/mipmap-xxhdpi/tishi.png
+0
-0
No files found.
app/src/main/AndroidManifest.xml
View file @
7b68c308
...
@@ -217,10 +217,6 @@
...
@@ -217,10 +217,6 @@
<service
<service
android:name=
".service.PermanentNotificationService"
android:name=
".service.PermanentNotificationService"
android:permission=
"android.permission.FOREGROUND_SERVICE"
/>
<!-- 闪光灯 -->
android:permission=
"android.permission.FOREGROUND_SERVICE"
/>
<!-- 闪光灯 -->
<service
android:name=
".service.FlashlightService"
android:exported=
"true"
tools:ignore=
"ExportedService"
/>
<meta-data
<meta-data
android:name=
"com.google.android.gms.ads.APPLICATION_ID"
android:name=
"com.google.android.gms.ads.APPLICATION_ID"
...
...
app/src/main/java/com/test/easy/easycleanerjunk/MyApplication.kt
View file @
7b68c308
...
@@ -52,10 +52,8 @@ class MyApplication : BaseApplication() {
...
@@ -52,10 +52,8 @@ class MyApplication : BaseApplication() {
initNotificationWork
()
initNotificationWork
()
if
(
ConfigHelper
.
ifAgreePrivacy
)
{
if
(
ConfigHelper
.
ifAgreePrivacy
)
{
if
(
context
.
canRequestAds
())
{
MobileAds
.
initialize
(
this
)
{
initializationStatus
->
MobileAds
.
initialize
(
this
)
{
initializationStatus
->
}
}
}
InstallHelps
.
init
()
InstallHelps
.
init
()
}
}
initLifeListener
()
initLifeListener
()
...
...
app/src/main/java/com/test/easy/easycleanerjunk/service/FlashlightService.kt
deleted
100644 → 0
View file @
542ae49d
package
com.test.easy.easycleanerjunk.service
import
android.app.Service
import
android.content.Context
import
android.content.Intent
import
android.hardware.camera2.CameraAccessException
import
android.hardware.camera2.CameraManager
import
android.os.Build
import
android.os.IBinder
import
android.util.Log
class
FlashlightService
:
Service
()
{
private
var
cameraManager
:
CameraManager
?
=
null
private
var
flashlightOn
=
false
override
fun
onCreate
()
{
super
.
onCreate
()
Log
.
e
(
"MXL"
,
"SerciveonCreate: "
)
cameraManager
=
getSystemService
(
Context
.
CAMERA_SERVICE
)
as
CameraManager
?
}
override
fun
onStartCommand
(
intent
:
Intent
?,
flags
:
Int
,
startId
:
Int
):
Int
{
try
{
val
cameraId
=
cameraManager
!!
.
cameraIdList
[
0
]
flashlightOn
=
if
(
flashlightOn
)
{
cameraManager
?.
setTorchMode
(
cameraId
,
false
)
false
}
else
{
cameraManager
?.
setTorchMode
(
cameraId
,
true
)
true
}
}
catch
(
e
:
CameraAccessException
)
{
e
.
printStackTrace
()
}
return
START_NOT_STICKY
}
override
fun
onBind
(
p0
:
Intent
?):
IBinder
?
{
return
null
}
}
\ No newline at end of file
app/src/main/java/com/test/easy/easycleanerjunk/service/PermanentNotificationService.kt
View file @
7b68c308
...
@@ -18,6 +18,7 @@ import com.test.easy.easycleanerjunk.activity.scanjunk.PrepareScanActivity
...
@@ -18,6 +18,7 @@ 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.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.helps.ConfigHelper
import
com.test.easy.easycleanerjunk.helps.ConfigHelper
...
@@ -96,14 +97,19 @@ class PermanentNotificationService : Service() {
...
@@ -96,14 +97,19 @@ class PermanentNotificationService : Service() {
contentView
.
setOnClickPendingIntent
(
R
.
id
.
id_battery_info
,
pendingIntent3
)
contentView
.
setOnClickPendingIntent
(
R
.
id
.
id_battery_info
,
pendingIntent3
)
expendView
.
setOnClickPendingIntent
(
R
.
id
.
id_battery_info
,
pendingIntent3
)
expendView
.
setOnClickPendingIntent
(
R
.
id
.
id_battery_info
,
pendingIntent3
)
val
intent4
=
Intent
()
//
val intent4 = Intent()
val
serviceComponent
=
ComponentName
(
context
,
FlashlightService
::
class
.
java
)
//
val serviceComponent = ComponentName(context, FlashlightService::class.java)
intent4
.
component
=
serviceComponent
//
intent4.component = serviceComponent
val
pendingIntent4
=
//
val pendingIntent4 =
PendingIntent
.
getService
(
context
,
0
,
intent4
,
PendingIntent
.
FLAG_IMMUTABLE
)
//
PendingIntent.getService(context, 0, intent4, PendingIntent.FLAG_IMMUTABLE)
contentView
.
setOnClickPendingIntent
(
R
.
id
.
id_ligh
t
,
pendingIntent4
)
// contentView.setOnClickPendingIntent(R.id.id_screensho
t, pendingIntent4)
expendView
.
setOnClickPendingIntent
(
R
.
id
.
id_ligh
t
,
pendingIntent4
)
// expendView.setOnClickPendingIntent(R.id.id_screensho
t, pendingIntent4)
val
intent4
=
Intent
(
context
,
ScreenShotAnimationActivity
::
class
.
java
)
val
pendingIntent4
=
PendingIntent
.
getActivity
(
context
,
0
,
intent4
,
PendingIntent
.
FLAG_IMMUTABLE
)
contentView
.
setOnClickPendingIntent
(
R
.
id
.
id_screenshot
,
pendingIntent4
)
expendView
.
setOnClickPendingIntent
(
R
.
id
.
id_screenshot
,
pendingIntent4
)
val
nfIntent
=
Intent
(
context
,
NewMainActivity
::
class
.
java
)
val
nfIntent
=
Intent
(
context
,
NewMainActivity
::
class
.
java
)
val
pendingIntent
=
val
pendingIntent
=
...
...
app/src/main/res/layout/reminder_layout_notification_big_notify.xml
View file @
7b68c308
...
@@ -17,16 +17,30 @@
...
@@ -17,16 +17,30 @@
android:orientation=
"vertical"
android:orientation=
"vertical"
tools:ignore=
"UseCompoundDrawables"
>
tools:ignore=
"UseCompoundDrawables"
>
<ImageView
<FrameLayout
android:layout_width=
"30dp"
android:layout_width=
"wrap_content"
android:layout_height=
"30dp"
android:layout_height=
"wrap_content"
android:layout_marginBottom=
"8dp"
tools:ignore=
"UselessParent"
>
android:src=
"@mipmap/qinli"
tools:ignore=
"ContentDescription"
/>
<ImageView
android:layout_width=
"30dp"
android:layout_height=
"30dp"
android:layout_margin=
"2dp"
android:src=
"@mipmap/cleanjunk_ss"
tools:ignore=
"ContentDescription"
/>
<ImageView
android:layout_width=
"12dp"
android:layout_height=
"12dp"
android:layout_gravity=
"end"
android:src=
"@mipmap/tishi"
tools:ignore=
"ContentDescription"
/>
</FrameLayout>
<TextView
<TextView
android:layout_width=
"wrap_content"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_marginTop=
"4dp"
android:text=
"Clean"
android:text=
"Clean"
android:textColor=
"#666666"
android:textColor=
"#666666"
android:textSize=
"12sp"
android:textSize=
"12sp"
...
@@ -47,7 +61,7 @@
...
@@ -47,7 +61,7 @@
android:layout_width=
"30dp"
android:layout_width=
"30dp"
android:layout_height=
"30dp"
android:layout_height=
"30dp"
android:layout_marginBottom=
"8dp"
android:layout_marginBottom=
"8dp"
android:src=
"@mipmap/
guanli
"
android:src=
"@mipmap/
manage_ss
"
tools:ignore=
"ContentDescription"
/>
tools:ignore=
"ContentDescription"
/>
<TextView
<TextView
...
@@ -73,7 +87,7 @@
...
@@ -73,7 +87,7 @@
android:layout_width=
"30dp"
android:layout_width=
"30dp"
android:layout_height=
"30dp"
android:layout_height=
"30dp"
android:layout_marginBottom=
"8dp"
android:layout_marginBottom=
"8dp"
android:src=
"@mipmap/
dianchi
"
android:src=
"@mipmap/
battery_ss
"
tools:ignore=
"ContentDescription"
/>
tools:ignore=
"ContentDescription"
/>
<TextView
<TextView
...
@@ -85,9 +99,9 @@
...
@@ -85,9 +99,9 @@
tools:ignore=
"HardcodedText"
/>
tools:ignore=
"HardcodedText"
/>
</LinearLayout>
</LinearLayout>
<!--
手电
-->
<!--
截图
-->
<LinearLayout
<LinearLayout
android:id=
"@+id/id_
ligh
t"
android:id=
"@+id/id_
screensho
t"
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"
...
@@ -100,13 +114,13 @@
...
@@ -100,13 +114,13 @@
android:layout_width=
"30dp"
android:layout_width=
"30dp"
android:layout_height=
"30dp"
android:layout_height=
"30dp"
android:layout_marginBottom=
"8dp"
android:layout_marginBottom=
"8dp"
android:src=
"@mipmap/s
houdiantong
"
android:src=
"@mipmap/s
creenshot_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=
"
Flash Ligh
t"
android:text=
"
Screensho
t"
android:textColor=
"#666666"
android:textColor=
"#666666"
android:textSize=
"12sp"
android:textSize=
"12sp"
tools:ignore=
"HardcodedText"
/>
tools:ignore=
"HardcodedText"
/>
...
...
app/src/main/res/layout/reminder_layout_notification_notify.xml
View file @
7b68c308
...
@@ -16,12 +16,26 @@
...
@@ -16,12 +16,26 @@
android:gravity=
"center"
android:gravity=
"center"
android:orientation=
"vertical"
>
android:orientation=
"vertical"
>
<ImageView
<FrameLayout
android:layout_width=
"30dp"
android:layout_width=
"wrap_content"
android:layout_height=
"30dp"
android:layout_height=
"wrap_content"
android:layout_marginBottom=
"4dp"
tools:ignore=
"UselessParent"
>
android:src=
"@mipmap/qinli"
tools:ignore=
"ContentDescription"
/>
<ImageView
android:layout_width=
"30dp"
android:layout_height=
"30dp"
android:layout_margin=
"2dp"
android:src=
"@mipmap/cleanjunk_ss"
tools:ignore=
"ContentDescription"
/>
<ImageView
android:layout_width=
"12dp"
android:layout_height=
"12dp"
android:layout_gravity=
"end"
android:src=
"@mipmap/tishi"
tools:ignore=
"ContentDescription"
/>
</FrameLayout>
</LinearLayout>
</LinearLayout>
<!--app管理-->
<!--app管理-->
...
@@ -36,8 +50,8 @@
...
@@ -36,8 +50,8 @@
<ImageView
<ImageView
android:layout_width=
"30dp"
android:layout_width=
"30dp"
android:layout_height=
"30dp"
android:layout_height=
"30dp"
android:layout_margin
Bottom=
"4
dp"
android:layout_margin
=
"2
dp"
android:src=
"@mipmap/
guanli
"
android:src=
"@mipmap/
manage_ss
"
tools:ignore=
"ContentDescription"
/>
tools:ignore=
"ContentDescription"
/>
</LinearLayout>
</LinearLayout>
...
@@ -54,14 +68,14 @@
...
@@ -54,14 +68,14 @@
<ImageView
<ImageView
android:layout_width=
"30dp"
android:layout_width=
"30dp"
android:layout_height=
"30dp"
android:layout_height=
"30dp"
android:layout_margin
Bottom=
"4
dp"
android:layout_margin
=
"2
dp"
android:src=
"@mipmap/
dianchi
"
android:src=
"@mipmap/
battery_ss
"
tools:ignore=
"ContentDescription"
/>
tools:ignore=
"ContentDescription"
/>
</LinearLayout>
</LinearLayout>
<!--
手电
-->
<!--
截图
-->
<LinearLayout
<LinearLayout
android:id=
"@+id/id_
ligh
t"
android:id=
"@+id/id_
screensho
t"
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"
...
@@ -72,8 +86,8 @@
...
@@ -72,8 +86,8 @@
<ImageView
<ImageView
android:layout_width=
"30dp"
android:layout_width=
"30dp"
android:layout_height=
"30dp"
android:layout_height=
"30dp"
android:layout_margin
Bottom=
"4
dp"
android:layout_margin
=
"2
dp"
android:src=
"@mipmap/s
houdiantong
"
android:src=
"@mipmap/s
creenshot_ss
"
tools:ignore=
"ContentDescription"
/>
tools:ignore=
"ContentDescription"
/>
</LinearLayout>
</LinearLayout>
...
...
app/src/main/res/mipmap-xxhdpi/battery_ss.png
0 → 100644
View file @
7b68c308
25.8 KB
app/src/main/res/mipmap-xxhdpi/cleanjunk_ss.png
0 → 100644
View file @
7b68c308
20 KB
app/src/main/res/mipmap-xxhdpi/manage_ss.png
0 → 100644
View file @
7b68c308
21.1 KB
app/src/main/res/mipmap-xxhdpi/screenshot_ss.png
0 → 100644
View file @
7b68c308
20 KB
app/src/main/res/mipmap-xxhdpi/tishi.png
0 → 100644
View file @
7b68c308
3.18 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