Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Sign in / Register
Toggle navigation
B
Browser 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
Browser White
Commits
98918230
Commit
98918230
authored
Sep 05, 2024
by
wanglei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
...
parent
5cc0312c
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
52 additions
and
113 deletions
+52
-113
NotificationPushUtil.kt
...in/java/com/base/browserwhite/fcm/NotificationPushUtil.kt
+1
-13
WebViewFragment.kt
...se/browserwhite/ui/activity/webbrowser/WebViewFragment.kt
+51
-100
No files found.
app/src/main/java/com/base/browserwhite/fcm/NotificationPushUtil.kt
View file @
98918230
package
com.base.browserwhite.fcm
import
android.content.Context
import
android.os.Handler
import
android.os.HandlerThread
import
android.util.Log
import
com.base.browserwhite.MyApplication
import
com.base.browserwhite.bean.ConstObject
import
com.base.browserwhite.bean.ConstObject.ID_APP_PROCESS
import
com.base.browserwhite.bean.ConstObject.ID_CLEAN_JUNK_MEMORY
import
com.base.browserwhite.bean.ConstObject.ID_JUNK_CLEANER
import
com.base.browserwhite.bean.ConstObject.ID_NEWS
import
com.base.browserwhite.bean.ConstObject.ID_WEATHER
import
com.base.browserwhite.help.EventUtils
import
com.base.browserwhite.utils.AppPreferences
import
com.base.browserwhite.utils.LogEx
import
com.base.browserwhite.utils.TimeUtils.formatTimeH
import
com.base.browserwhite.utils.TimeUtils.isTimeBetweenEightAndTenPM
import
java.text.SimpleDateFormat
import
java.util.Calendar
import
java.util.Locale
...
...
@@ -35,7 +23,7 @@ object NotificationPushUtil {
* @param where [PUSH_WHERE_TIMBER]
*/
fun
Context
.
sendNotificationWhere
(
setActionId
:
Int
?,
where
:
String
)
{
Log
.
d
(
"glc"
,
"sendNotificationW
here"
)
Log
.
d
(
"glc"
,
"sendNotificationWhere where=$w
here"
)
val
actionId
:
Int
=
setActionId
?:
NotificationHelp
.
getNotificationId
()
if
(
MyApplication
.
PAUSED_VALUE
==
1
)
{
return
...
...
app/src/main/java/com/base/browserwhite/ui/activity/webbrowser/WebViewFragment.kt
View file @
98918230
This diff is collapsed.
Click to expand 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