Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
tech
webview_android
Commits
a9757497
Commit
a9757497
authored
5 years ago
by
moyy
Browse files
Options
Download
Email Patches
Plain Diff
bug修复:底层包名。
parent
e4c25aa9
xzxd
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
pi_framework/src/main/java/com/high/pi_framework/framework/JSIntercept.kt
+0
-2
.../main/java/com/high/pi_framework/framework/JSIntercept.kt
pi_framework/src/main/java/com/high/pi_framework/webview/AndroidWebView.kt
+1
-1
...main/java/com/high/pi_framework/webview/AndroidWebView.kt
with
1 addition
and
3 deletions
+1
-3
pi_framework/src/main/java/com/high/pi_framework/framework/JSIntercept.kt
+
0
-
2
View file @
a9757497
...
...
@@ -49,9 +49,7 @@ class JSIntercept(ynWebView: YNWebView) {
val
pm
=
mActivity
.
applicationContext
.
packageManager
val
info
=
pm
.
getPackageInfo
(
mActivity
.
applicationContext
.
packageName
,
0
)
version
=
info
.
versionName
pkg
=
mActivity
.
packageName
pkg
=
pkg
.
replace
(
'.'
,
'_'
)
}
catch
(
e
:
Exception
)
{
e
.
printStackTrace
()
}
...
...
This diff is collapsed.
Click to expand it.
pi_framework/src/main/java/com/high/pi_framework/webview/AndroidWebView.kt
+
1
-
1
View file @
a9757497
...
...
@@ -177,7 +177,7 @@ class AndroidWebView constructor(private val ctx: Context, private var uAgent: S
}
}
}
catch
(
e
:
java
.
lang
.
Exception
)
{
e
.
printStackTrace
()
//
e.printStackTrace()
}
return
response
?:
super
.
shouldInterceptRequest
(
view
,
request
)
}
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
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
Menu
Projects
Groups
Snippets
Help