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
52cd0a6e
Commit
52cd0a6e
authored
Sep 05, 2024
by
wanglei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
...
parent
d8d2a736
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
1 deletion
+6
-1
ScreenStatusReceiver.java
.../java/com/base/browserwhite/fcm/ScreenStatusReceiver.java
+5
-1
BookmarkActivity.kt
...ase/browserwhite/ui/activity/bookmark/BookmarkActivity.kt
+1
-0
No files found.
app/src/main/java/com/base/browserwhite/fcm/ScreenStatusReceiver.java
View file @
52cd0a6e
...
@@ -19,7 +19,10 @@ public class ScreenStatusReceiver extends BroadcastReceiver {
...
@@ -19,7 +19,10 @@ public class ScreenStatusReceiver extends BroadcastReceiver {
private
static
boolean
isDeviceInteractive
=
true
;
private
static
boolean
isDeviceInteractive
=
true
;
private
static
boolean
isSecureLockActive
=
false
;
private
static
boolean
isSecureLockActive
=
false
;
static
boolean
haveRegister
=
false
;
public
static
void
setupScreenStatusListener
(
Context
context
)
{
public
static
void
setupScreenStatusListener
(
Context
context
)
{
if
(
haveRegister
)
return
;
IntentFilter
intentFilter
=
new
IntentFilter
();
IntentFilter
intentFilter
=
new
IntentFilter
();
intentFilter
.
addAction
(
Intent
.
ACTION_SCREEN_OFF
);
intentFilter
.
addAction
(
Intent
.
ACTION_SCREEN_OFF
);
intentFilter
.
addAction
(
Intent
.
ACTION_SCREEN_ON
);
intentFilter
.
addAction
(
Intent
.
ACTION_SCREEN_ON
);
...
@@ -31,6 +34,7 @@ public class ScreenStatusReceiver extends BroadcastReceiver {
...
@@ -31,6 +34,7 @@ public class ScreenStatusReceiver extends BroadcastReceiver {
}
else
{
}
else
{
applicationContext
.
registerReceiver
(
new
ScreenStatusReceiver
(),
intentFilter
);
applicationContext
.
registerReceiver
(
new
ScreenStatusReceiver
(),
intentFilter
);
}
}
haveRegister
=
true
;
}
}
@Override
@Override
...
@@ -49,7 +53,7 @@ public class ScreenStatusReceiver extends BroadcastReceiver {
...
@@ -49,7 +53,7 @@ public class ScreenStatusReceiver extends BroadcastReceiver {
if
(
isDeviceInteractive
()
&&
!
isSecureLockActive
())
{
if
(
isDeviceInteractive
()
&&
!
isSecureLockActive
())
{
int
secureSetting
=
Integer
.
parseInt
(
AppPreferences
.
getInstance
().
getString
(
"lockS"
,
"1"
));
int
secureSetting
=
Integer
.
parseInt
(
AppPreferences
.
getInstance
().
getString
(
"lockS"
,
"1"
));
if
(
secureSetting
==
1
)
{
if
(
secureSetting
==
1
)
{
Log
.
d
(
"glc"
,
"lockS"
);
Log
.
d
(
"glc"
,
"lockS"
);
NotificationPushUtil
.
INSTANCE
.
sendNotificationWhere
(
context
,
null
,
PUSH_WHERE_UNLOCK
);
NotificationPushUtil
.
INSTANCE
.
sendNotificationWhere
(
context
,
null
,
PUSH_WHERE_UNLOCK
);
}
}
}
}
...
...
app/src/main/java/com/base/browserwhite/ui/activity/bookmark/BookmarkActivity.kt
View file @
52cd0a6e
...
@@ -83,6 +83,7 @@ class BookmarkActivity : BaseActivity<ActivityBookmarkBinding>() {
...
@@ -83,6 +83,7 @@ class BookmarkActivity : BaseActivity<ActivityBookmarkBinding>() {
if
(
bookmarkFragment
.
bookmarkAdapter
.
canBeforeFolder
())
{
if
(
bookmarkFragment
.
bookmarkAdapter
.
canBeforeFolder
())
{
bookmarkFragment
.
bookmarkAdapter
.
beforeFolder
()
bookmarkFragment
.
bookmarkAdapter
.
beforeFolder
()
}
else
{
}
else
{
finishToMain
()
finishToMain
()
}
}
}
else
{
}
else
{
...
...
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