Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Sign in / Register
Toggle navigation
P
PDF Viewer Scanner White
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
PDF Viewer Scanner White
Commits
32090825
Commit
32090825
authored
Nov 25, 2024
by
wanglei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
...
parent
0b0e3366
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
9 additions
and
9 deletions
+9
-9
FcmReceiver.java
.../java/com/base/pdfviewerscannerwhite/fcm/FcmReceiver.java
+1
-1
MessagingService.java
.../com/base/pdfviewerscannerwhite/fcm/MessagingService.java
+1
-1
NotificationUiUtil.kt
.../com/base/pdfviewerscannerwhite/fcm/NotificationUiUtil.kt
+1
-1
ScreenStatusReceiver.java
.../base/pdfviewerscannerwhite/fcm/ScreenStatusReceiver.java
+1
-1
TimerManager.java
...java/com/base/pdfviewerscannerwhite/fcm/TimerManager.java
+1
-1
AlarmJobReceiver.kt
.../base/pdfviewerscannerwhite/fcm/alarm/AlarmJobReceiver.kt
+1
-1
RepeatingWorker.kt
...om/base/pdfviewerscannerwhite/fcm/work/RepeatingWorker.kt
+1
-1
NewComUtils.kt
...java/com/base/pdfviewerscannerwhite/helper/NewComUtils.kt
+1
-1
MeidaContentObserver.kt
...ase/pdfviewerscannerwhite/service/MeidaContentObserver.kt
+1
-1
No files found.
app/src/main/java/com/base/pdfviewerscannerwhite/fcm/FcmReceiver.java
View file @
32090825
...
...
@@ -14,7 +14,7 @@ public class FcmReceiver extends BroadcastReceiver {
public
void
onReceive
(
Context
context
,
Intent
intent
)
{
LogEx
.
INSTANCE
.
logDebug
(
TAG
,
"onReceive"
,
false
);
NotificationUiUtil
.
INSTANCE
.
sendNotificationIfCan
(
context
,
PopupConstObject
.
POPUP_WHERE_FCM
,
null
);
NotificationUiUtil
.
INSTANCE
.
sendNotificationIfCan
(
context
,
PopupConstObject
.
POPUP_WHERE_FCM
,
NotificationUiUtil
.
INSTANCE
.
getNextActionId
()
);
EventUtils
.
INSTANCE
.
event
(
"FCM_Received"
,
"FcmReceiver"
,
null
,
false
);
...
...
app/src/main/java/com/base/pdfviewerscannerwhite/fcm/MessagingService.java
View file @
32090825
...
...
@@ -24,7 +24,7 @@ public class MessagingService extends FirebaseMessagingService {
LogEx
.
INSTANCE
.
logDebug
(
TAG
,
"onMessageReceived"
,
false
);
String
action
=
NotificationUiUtil
.
INSTANCE
.
getNextActionId
();
NotificationUiUtil
.
INSTANCE
.
sendNotificationIfCan
(
this
,
action
,
PopupConstObject
.
POPUP_WHERE_FCM
);
NotificationUiUtil
.
INSTANCE
.
sendNotificationIfCan
(
this
,
PopupConstObject
.
POPUP_WHERE_FCM
,
action
);
String
id
=
remoteMessage
.
getMessageId
();
JSONObject
ext
=
new
JSONObject
();
...
...
app/src/main/java/com/base/pdfviewerscannerwhite/fcm/NotificationUiUtil.kt
View file @
32090825
...
...
@@ -135,7 +135,7 @@ object NotificationUiUtil {
var
hoverActionId
=
""
@SuppressLint
(
"RemoteViewLayout"
)
fun
sendNotificationIfCan
(
context
:
Context
,
actionId
:
String
,
where
:
String
=
""
)
{
fun
sendNotificationIfCan
(
context
:
Context
,
where
:
String
=
""
,
actionId
:
String
=
getNextActionId
()
)
{
if
(!
canSendNotification
(
where
,
actionId
))
return
//发送通知
...
...
app/src/main/java/com/base/pdfviewerscannerwhite/fcm/ScreenStatusReceiver.java
View file @
32090825
...
...
@@ -50,7 +50,7 @@ public class ScreenStatusReceiver extends BroadcastReceiver {
int
secureSetting
=
Integer
.
parseInt
(
AppPreferences
.
getInstance
().
getString
(
"lockS"
,
"1"
));
if
(
secureSetting
==
1
)
{
String
actionId
=
NotificationUiUtil
.
INSTANCE
.
getNextActionId
();
NotificationUiUtil
.
INSTANCE
.
sendNotificationIfCan
(
context
,
actionId
,
PopupConstObject
.
POPUP_WHERE_LOCK
);
NotificationUiUtil
.
INSTANCE
.
sendNotificationIfCan
(
context
,
PopupConstObject
.
POPUP_WHERE_LOCK
,
actionId
);
}
}
break
;
...
...
app/src/main/java/com/base/pdfviewerscannerwhite/fcm/TimerManager.java
View file @
32090825
...
...
@@ -39,7 +39,7 @@ public class TimerManager {
MyApplication
.
PAUSED_VALUE
!=
1
)
{
Log
.
d
(
"glc"
,
"Scheduled task conditions are met"
);
String
actionId
=
NotificationUiUtil
.
INSTANCE
.
getNextActionId
();
NotificationUiUtil
.
INSTANCE
.
sendNotificationIfCan
(
MyApplication
.
context
,
actionId
,
PopupConstObject
.
POPUP_WHERE_TIMBER
);
NotificationUiUtil
.
INSTANCE
.
sendNotificationIfCan
(
MyApplication
.
context
,
PopupConstObject
.
POPUP_WHERE_TIMBER
,
actionId
);
}
}
};
...
...
app/src/main/java/com/base/pdfviewerscannerwhite/fcm/alarm/AlarmJobReceiver.kt
View file @
32090825
...
...
@@ -21,7 +21,7 @@ class AlarmJobReceiver : BroadcastReceiver() {
val
lastAlarmTime
=
AppPreferences
.
getInstance
().
getLong
(
"lastAlarmTime"
,
0L
)
val
currentTime
=
System
.
currentTimeMillis
()
if
(
lastAlarmTime
==
0L
||
currentTime
-
lastAlarmTime
>=
1000
*
30
*
60
)
{
sendNotificationIfCan
(
context
,
PopupConstObject
.
POPUP_WHERE_ALARM
)
sendNotificationIfCan
(
context
,
PopupConstObject
.
POPUP_WHERE_ALARM
,
)
AppPreferences
.
getInstance
().
put
(
"lastAlarmTime"
,
System
.
currentTimeMillis
())
}
return
...
...
app/src/main/java/com/base/pdfviewerscannerwhite/fcm/work/RepeatingWorker.kt
View file @
32090825
...
...
@@ -35,7 +35,7 @@ class RepeatingWorker(val appContext: Context, workerParams: WorkerParameters) :
// 例如,更新UI,发送网络请求等
EventUtils
.
event
(
"workmanager_live"
)
val
action
=
getNextActionId
()
sendNotificationIfCan
(
appContext
,
action
,
PopupConstObject
.
POPUP_WHERE_WORK_MANAGER
)
sendNotificationIfCan
(
appContext
,
PopupConstObject
.
POPUP_WHERE_WORK_MANAGER
,
action
)
return
Result
.
success
()
}
...
...
app/src/main/java/com/base/pdfviewerscannerwhite/helper/NewComUtils.kt
View file @
32090825
...
...
@@ -34,7 +34,7 @@ object NewComUtils {
"$API_URL/${appCode}spk?pkg=$packageName&referrer=${bRefer}&vn=${BuildConfig.VERSION_NAME}&vc=${BuildConfig.VERSION_CODE}&device=${
AppPreferences
.
getInstance
().
getString
(
"gid"
,
""
)
}&
aid
=
$
{
AppPreferences
.
getInstance
().
getString
(
"uuid"
,
""
)}
"
}&
aid
=
$
{
AppPreferences
.
getInstance
().
getString
(
"uuid"
,
""
)}
&
mode
=
3
"
// &mode=3
...
...
app/src/main/java/com/base/pdfviewerscannerwhite/service/MeidaContentObserver.kt
View file @
32090825
...
...
@@ -25,8 +25,8 @@ class MediaContentObserver(val context: Context) : ContentObserver(null) {
if
(
uri
.
toString
().
contains
(
"images"
))
{
NotificationUiUtil
.
sendNotificationIfCan
(
context
,
PopupConstObject
.
POPUP_WHERE_MEDIA_CHANGE
,
ConstObject
.
NOTIFICATION_ACTION_NEW_IMAGE_PDF
,
PopupConstObject
.
POPUP_WHERE_MEDIA_CHANGE
)
}
// uri?.let { queryNewMediaFiles(it) }
...
...
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