Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Sign in / Register
Toggle navigation
S
swiftcleanerphonehelper
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
swiftcleanerphonehelper
Commits
712fe09c
Commit
712fe09c
authored
Dec 20, 2024
by
Your Name
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
.
parent
68c89ab7
Pipeline
#1420
failed with stages
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
19 additions
and
19 deletions
+19
-19
Global.java
.../main/java/com/swiftcleaner/chovey/model/bean/Global.java
+1
-1
StartActivity.java
.../com/swiftcleaner/chovey/view/activity/StartActivity.java
+6
-6
NotificationUtils.kt
app/src/main/java/com/zxdemo/notity/NotificationUtils.kt
+12
-12
No files found.
app/src/main/java/com/swiftcleaner/chovey/model/bean/Global.java
View file @
712fe09c
...
@@ -7,7 +7,7 @@ public class Global {
...
@@ -7,7 +7,7 @@ public class Global {
public
static
String
FUNCTION_APP_MANAGER
=
"function_app_manager"
;
public
static
String
FUNCTION_APP_MANAGER
=
"function_app_manager"
;
public
static
String
FUNCTION_WHATS_APP
=
"function_whats_app"
;
public
static
String
FUNCTION_WHATS_APP
=
"function_whats_app"
;
public
static
String
FUNCTION_APP_PROCESS
=
"function_app_process"
;
public
static
String
FUNCTION_APP_PROCESS
=
"function_app_process"
;
public
static
String
FUNCTION_SIMILAR_PHOTOS
=
"function_similar_photos"
;
//
public static String FUNCTION_SIMILAR_PHOTOS = "function_similar_photos";
public
static
String
FUNCTION_SCREENSHOT
=
"function_screenshot"
;
public
static
String
FUNCTION_SCREENSHOT
=
"function_screenshot"
;
...
...
app/src/main/java/com/swiftcleaner/chovey/view/activity/StartActivity.java
View file @
712fe09c
...
@@ -6,7 +6,7 @@ import static com.swiftcleaner.chovey.model.bean.Global.FUNCTION_BATTERY;
...
@@ -6,7 +6,7 @@ import static com.swiftcleaner.chovey.model.bean.Global.FUNCTION_BATTERY;
import
static
com
.
swiftcleaner
.
chovey
.
model
.
bean
.
Global
.
FUNCTION_CLEAN
;
import
static
com
.
swiftcleaner
.
chovey
.
model
.
bean
.
Global
.
FUNCTION_CLEAN
;
import
static
com
.
swiftcleaner
.
chovey
.
model
.
bean
.
Global
.
FUNCTION_LARGE_FILE
;
import
static
com
.
swiftcleaner
.
chovey
.
model
.
bean
.
Global
.
FUNCTION_LARGE_FILE
;
import
static
com
.
swiftcleaner
.
chovey
.
model
.
bean
.
Global
.
FUNCTION_SCREENSHOT
;
import
static
com
.
swiftcleaner
.
chovey
.
model
.
bean
.
Global
.
FUNCTION_SCREENSHOT
;
import
static
com
.
swiftcleaner
.
chovey
.
model
.
bean
.
Global
.
FUNCTION_SIMILAR_PHOTOS
;
//
import static com.swiftcleaner.chovey.model.bean.Global.FUNCTION_SIMILAR_PHOTOS;
import
static
com
.
swiftcleaner
.
chovey
.
model
.
bean
.
Global
.
FUNCTION_WHATS_APP
;
import
static
com
.
swiftcleaner
.
chovey
.
model
.
bean
.
Global
.
FUNCTION_WHATS_APP
;
import
static
com
.
swiftcleaner
.
chovey
.
model
.
bean
.
Global
.
OpenLoadTime
;
import
static
com
.
swiftcleaner
.
chovey
.
model
.
bean
.
Global
.
OpenLoadTime
;
...
@@ -281,11 +281,11 @@ public class StartActivity extends AppCompatActivity {
...
@@ -281,11 +281,11 @@ public class StartActivity extends AppCompatActivity {
finish
();
finish
();
return
;
return
;
}
}
if
(
Objects
.
equals
(
actionId
,
FUNCTION_SIMILAR_PHOTOS
))
{
//
if (Objects.equals(actionId, FUNCTION_SIMILAR_PHOTOS)) {
startActivity
(
new
Intent
(
this
,
SimilarPhotosActivity
.
class
));
//
startActivity(new Intent(this, SimilarPhotosActivity.class));
finish
();
//
finish();
return
;
//
return;
}
//
}
if
(
Objects
.
equals
(
actionId
,
FUNCTION_SCREENSHOT
))
{
if
(
Objects
.
equals
(
actionId
,
FUNCTION_SCREENSHOT
))
{
startActivity
(
new
Intent
(
this
,
ScreenShotActivity
.
class
));
startActivity
(
new
Intent
(
this
,
ScreenShotActivity
.
class
));
finish
();
finish
();
...
...
app/src/main/java/com/zxdemo/notity/NotificationUtils.kt
View file @
712fe09c
...
@@ -21,7 +21,7 @@ import com.swiftcleaner.chovey.model.bean.Global.FUNCTION_BATTERY
...
@@ -21,7 +21,7 @@ import com.swiftcleaner.chovey.model.bean.Global.FUNCTION_BATTERY
import
com.swiftcleaner.chovey.model.bean.Global.FUNCTION_CLEAN
import
com.swiftcleaner.chovey.model.bean.Global.FUNCTION_CLEAN
import
com.swiftcleaner.chovey.model.bean.Global.FUNCTION_LARGE_FILE
import
com.swiftcleaner.chovey.model.bean.Global.FUNCTION_LARGE_FILE
import
com.swiftcleaner.chovey.model.bean.Global.FUNCTION_SCREENSHOT
import
com.swiftcleaner.chovey.model.bean.Global.FUNCTION_SCREENSHOT
import
com.swiftcleaner.chovey.model.bean.Global.FUNCTION_SIMILAR_PHOTOS
//
import com.swiftcleaner.chovey.model.bean.Global.FUNCTION_SIMILAR_PHOTOS
import
com.swiftcleaner.chovey.model.bean.Global.FUNCTION_WHATS_APP
import
com.swiftcleaner.chovey.model.bean.Global.FUNCTION_WHATS_APP
import
com.swiftcleaner.chovey.model.bean.Global.NotificationInterval
import
com.swiftcleaner.chovey.model.bean.Global.NotificationInterval
import
com.swiftcleaner.chovey.model.bean.Global.NotificationStayCount
import
com.swiftcleaner.chovey.model.bean.Global.NotificationStayCount
...
@@ -44,7 +44,7 @@ object NotificationUtils {
...
@@ -44,7 +44,7 @@ object NotificationUtils {
FUNCTION_LARGE_FILE
,
FUNCTION_LARGE_FILE
,
FUNCTION_WHATS_APP
,
FUNCTION_WHATS_APP
,
FUNCTION_APP_PROCESS
,
FUNCTION_APP_PROCESS
,
FUNCTION_SIMILAR_PHOTOS
,
//
FUNCTION_SIMILAR_PHOTOS,
FUNCTION_SCREENSHOT
FUNCTION_SCREENSHOT
)
)
...
@@ -147,7 +147,7 @@ object NotificationUtils {
...
@@ -147,7 +147,7 @@ object NotificationUtils {
bigRemoteViews
.
setImageViewResource
(
R
.
id
.
iv_icon
,
R
.
mipmap
.
h_appmanager
)
bigRemoteViews
.
setImageViewResource
(
R
.
id
.
iv_icon
,
R
.
mipmap
.
h_appmanager
)
smallRemoteViews
.
setImageViewResource
(
R
.
id
.
iv_icon
,
R
.
mipmap
.
h_appmanager
)
smallRemoteViews
.
setImageViewResource
(
R
.
id
.
iv_icon
,
R
.
mipmap
.
h_appmanager
)
val
desc
=
"Manage apps easily with
[APP Name].
"
val
desc
=
"Manage apps easily with
Swift Cleaner - Phone Helper
"
smallRemoteViews
.
setImageViewResource
(
R
.
id
.
iv_icon
,
R
.
mipmap
.
logox
)
smallRemoteViews
.
setImageViewResource
(
R
.
id
.
iv_icon
,
R
.
mipmap
.
logox
)
bigRemoteViews
.
setTextViewText
(
R
.
id
.
tv_desc
,
desc
)
bigRemoteViews
.
setTextViewText
(
R
.
id
.
tv_desc
,
desc
)
smallRemoteViews
.
setTextViewText
(
R
.
id
.
tv_desc
,
desc
)
smallRemoteViews
.
setTextViewText
(
R
.
id
.
tv_desc
,
desc
)
...
@@ -193,15 +193,15 @@ object NotificationUtils {
...
@@ -193,15 +193,15 @@ object NotificationUtils {
smallRemoteViews
.
setTextViewText
(
R
.
id
.
tv_desc
,
desc
)
smallRemoteViews
.
setTextViewText
(
R
.
id
.
tv_desc
,
desc
)
}
}
FUNCTION_SIMILAR_PHOTOS
->
{
//
FUNCTION_SIMILAR_PHOTOS -> {
bigRemoteViews
.
setImageViewResource
(
R
.
id
.
iv_icon
,
R
.
mipmap
.
h_simiar
)
//
bigRemoteViews.setImageViewResource(R.id.iv_icon, R.mipmap.h_simiar)
smallRemoteViews
.
setImageViewResource
(
R
.
id
.
iv_icon
,
R
.
mipmap
.
h_simiar
)
//
smallRemoteViews.setImageViewResource(R.id.iv_icon, R.mipmap.h_simiar)
//
val
desc
=
"Similar pics? Clear for space"
//
val desc = "Similar pics? Clear for space"
smallRemoteViews
.
setImageViewResource
(
R
.
id
.
iv_icon
,
R
.
mipmap
.
logox
)
//
smallRemoteViews.setImageViewResource(R.id.iv_icon, R.mipmap.logox)
bigRemoteViews
.
setTextViewText
(
R
.
id
.
tv_desc
,
desc
)
//
bigRemoteViews.setTextViewText(R.id.tv_desc, desc)
smallRemoteViews
.
setTextViewText
(
R
.
id
.
tv_desc
,
desc
)
//
smallRemoteViews.setTextViewText(R.id.tv_desc, desc)
}
//
}
FUNCTION_SCREENSHOT
->
{
FUNCTION_SCREENSHOT
->
{
bigRemoteViews
.
setImageViewResource
(
R
.
id
.
iv_icon
,
R
.
mipmap
.
h_screenshot
)
bigRemoteViews
.
setImageViewResource
(
R
.
id
.
iv_icon
,
R
.
mipmap
.
h_screenshot
)
...
...
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