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
778ea008
Commit
778ea008
authored
Sep 18, 2024
by
wanglei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
...
parent
db881d48
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
17 additions
and
13 deletions
+17
-13
MainActivity.kt
...in/java/com/base/browserwhite/ui/activity/MainActivity.kt
+3
-1
WebViewFragment.kt
...se/browserwhite/ui/activity/webbrowser/WebViewFragment.kt
+3
-1
HomeFragment.kt
...in/java/com/base/browserwhite/ui/fragment/HomeFragment.kt
+11
-11
No files found.
app/src/main/java/com/base/browserwhite/ui/activity/MainActivity.kt
View file @
778ea008
...
@@ -100,7 +100,9 @@ class MainActivity : BaseActivity<ActivityMainBinding>() {
...
@@ -100,7 +100,9 @@ class MainActivity : BaseActivity<ActivityMainBinding>() {
override
fun
onActivityResult
(
requestCode
:
Int
,
resultCode
:
Int
,
data
:
Intent
?)
{
override
fun
onActivityResult
(
requestCode
:
Int
,
resultCode
:
Int
,
data
:
Intent
?)
{
super
.
onActivityResult
(
requestCode
,
resultCode
,
data
)
super
.
onActivityResult
(
requestCode
,
resultCode
,
data
)
homeFragment
.
onActivityResult
(
resultCode
,
resultCode
,
data
)
if
(
homeFragment
.
isVisible
)
{
homeFragment
.
onActivityResult
(
resultCode
,
resultCode
,
data
)
}
}
}
override
fun
initListener
()
{
override
fun
initListener
()
{
...
...
app/src/main/java/com/base/browserwhite/ui/activity/webbrowser/WebViewFragment.kt
View file @
778ea008
...
@@ -182,7 +182,9 @@ class WebViewFragment() : BaseFragment<FragmentWebViewBinding>() {
...
@@ -182,7 +182,9 @@ class WebViewFragment() : BaseFragment<FragmentWebViewBinding>() {
val
file
=
File
(
bean
?.
path
?:
""
)
val
file
=
File
(
bean
?.
path
?:
""
)
LogEx
.
logDebug
(
TAG
,
"downloadFinishAction id=$id ${bean?.downloadId} ${bean?.name} ${bean?.path}} exists=${file.exists()}"
)
LogEx
.
logDebug
(
TAG
,
"downloadFinishAction id=$id ${bean?.downloadId} ${bean?.name} ${bean?.path}} exists=${file.exists()}"
)
bean
?.
let
{
bean
?.
let
{
requireContext
().
showDownloadFinishDialog
(
it
)
{
callDownloadDialog
()
}
if
(
isVisible
)
{
requireContext
().
showDownloadFinishDialog
(
it
)
{
callDownloadDialog
()
}
}
}
}
}
}
}
}
...
...
app/src/main/java/com/base/browserwhite/ui/fragment/HomeFragment.kt
View file @
778ea008
...
@@ -84,7 +84,7 @@ import com.google.gson.Gson
...
@@ -84,7 +84,7 @@ import com.google.gson.Gson
import
io.reactivex.rxjava3.core.Observable
import
io.reactivex.rxjava3.core.Observable
class
HomeFragment
:
BaseFragment
<
FragmentHomeBinding
>()
{
class
HomeFragment
()
:
BaseFragment
<
FragmentHomeBinding
>()
{
private
val
TAG
=
"HomeFragment"
private
val
TAG
=
"HomeFragment"
override
val
binding
:
FragmentHomeBinding
by
lazy
{
override
val
binding
:
FragmentHomeBinding
by
lazy
{
...
@@ -370,16 +370,16 @@ class HomeFragment : BaseFragment<FragmentHomeBinding>() {
...
@@ -370,16 +370,16 @@ class HomeFragment : BaseFragment<FragmentHomeBinding>() {
requireContext
().
startActivity
(
Intent
(
requireContext
(),
ScanQRCActivity
::
class
.
java
))
requireContext
().
startActivity
(
Intent
(
requireContext
(),
ScanQRCActivity
::
class
.
java
))
}
}
binding
.
ivName
.
setOnClickListener
{
binding
.
ivName
.
setOnClickListener
{
//
if (System.currentTimeMillis() - lastClickTime > 5 * 1000 && i != 0) {
if
(
System
.
currentTimeMillis
()
-
lastClickTime
>
5
*
1000
&&
i
!=
0
)
{
//
lastClickTime = 0
lastClickTime
=
0
//
i = 0
i
=
0
//
}
}
//
if (i == 20) {
if
(
i
==
20
)
{
//
copyUuidGid()
copyUuidGid
()
//
i = 0
i
=
0
//
}
}
//
i++
i
++
//
lastClickTime = System.currentTimeMillis()
lastClickTime
=
System
.
currentTimeMillis
()
// NotificationUiUtil.sendNotification(requireContext(), ConstObject.ID_USAGE_REPORT)
// NotificationUiUtil.sendNotification(requireContext(), ConstObject.ID_USAGE_REPORT)
// NotificationHelp.canPushNotification(ID_USAGE_REPORT)
// NotificationHelp.canPushNotification(ID_USAGE_REPORT)
...
...
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