Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
abook_check
Overview
Overview
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
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
abook_android
abook_check
Commits
b087ef1c
Commit
b087ef1c
authored
Jun 29, 2021
by
Kim Jinsung
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Task #43300 API30対応
ターゲットバージョン30以上からWebviewのAllowFileAccess属性のデフォルト値がfalseに設定されている問題対応
parent
d87107ae
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletions
+2
-1
ABVJE_UI_Android/src/jp/agentec/abook/abv/ui/viewer/view/OperationTaskLayout.java
+2
-1
No files found.
ABVJE_UI_Android/src/jp/agentec/abook/abv/ui/viewer/view/OperationTaskLayout.java
View file @
b087ef1c
...
@@ -100,7 +100,8 @@ public class OperationTaskLayout extends RelativeLayout {
...
@@ -100,7 +100,8 @@ public class OperationTaskLayout extends RelativeLayout {
settings
.
setCacheMode
(
WebSettings
.
LOAD_NO_CACHE
);
settings
.
setCacheMode
(
WebSettings
.
LOAD_NO_CACHE
);
// mWebView.loadDataWithBaseURL("", url2, "text/html", "UTF-8", "");
// mWebView.loadDataWithBaseURL("", url2, "text/html", "UTF-8", "");
settings
.
setAllowFileAccessFromFileURLs
(
true
);
//Android7利用で警告ダイヤログ表示問題対応
settings
.
setAllowFileAccessFromFileURLs
(
true
);
//Android7利用で警告ダイヤログ表示問題対応
//ターゲットバージョン30以上からデフォルトがfalseに設定されている問題対応
settings
.
setAllowFileAccess
(
true
);
mWebView
.
setAlpha
((
int
)
(
255
*
1.0f
));
mWebView
.
setAlpha
((
int
)
(
255
*
1.0f
));
if
(
Build
.
VERSION
.
SDK_INT
>=
29
)
{
if
(
Build
.
VERSION
.
SDK_INT
>=
29
)
{
mWebView
.
setLayerType
(
View
.
LAYER_TYPE_SOFTWARE
,
null
);
mWebView
.
setLayerType
(
View
.
LAYER_TYPE_SOFTWARE
,
null
);
...
...
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