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
f819c828
Commit
f819c828
authored
Jul 08, 2019
by
Lee Jaebin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
初回起動時の編集確認処理除去
parent
fe870d7b
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
0 additions
and
65 deletions
+0
-65
ABVJE_UI_Android/src/jp/agentec/abook/abv/ui/viewer/activity/HTMLWebViewActivity.java
+0
-33
ABVJE_UI_Android/src/jp/agentec/abook/abv/ui/viewer/activity/HTMLXWalkWebViewActivity.java
+0
-5
ABVJE_UI_Android/src/jp/agentec/abook/abv/ui/viewer/activity/ParentWebViewActivity.java
+0
-27
No files found.
ABVJE_UI_Android/src/jp/agentec/abook/abv/ui/viewer/activity/HTMLWebViewActivity.java
View file @
f819c828
...
...
@@ -242,39 +242,6 @@ public class HTMLWebViewActivity extends ParentWebViewActivity {
webView
.
setWebViewClient
(
new
WebViewClient
()
{
@Override
public
WebResourceResponse
shouldInterceptRequest
(
WebView
view
,
final
String
url
)
{
if
(
mXWalkOpenType
==
Constant
.
XWalkOpenType
.
PANO_EDIT
)
{
// 360編集画面時に以下の処理でステータスコードのチェックを行う
if
(!
url
.
contains
(
"%"
))
{
new
Thread
(
new
Runnable
()
{
@Override
public
void
run
()
{
HttpGet
httpGet
=
new
HttpGet
(
url
);
HttpResponse
response
;
HttpClient
client
=
new
DefaultHttpClient
();
try
{
response
=
client
.
execute
(
httpGet
);
final
int
statusCode
=
response
.
getStatusLine
().
getStatusCode
();
Logger
.
d
(
"shouldInterceptRequest url :"
+
url
+
" status code : "
+
statusCode
);
if
(
statusCode
>=
400
)
{
handler
.
post
(
new
Runnable
()
{
@Override
public
void
run
()
{
commonOnReceivedResponseHeaders
(
url
,
statusCode
);
}
});
}
}
catch
(
IOException
e
)
{
Logger
.
e
(
TAG
,
e
);
}
}
}).
start
();
}
}
return
null
;
}
@Override
public
void
onLoadResource
(
WebView
view
,
String
url
)
{
backCheckFlg
=
view
.
canGoBack
();
forwardCheckFlg
=
view
.
canGoForward
();
...
...
ABVJE_UI_Android/src/jp/agentec/abook/abv/ui/viewer/activity/HTMLXWalkWebViewActivity.java
View file @
f819c828
...
...
@@ -252,11 +252,6 @@ public class HTMLXWalkWebViewActivity extends ParentWebViewActivity {
});
webView
.
setResourceClient
(
new
XWalkResourceClient
(
webView
)
{
@Override
public
void
onReceivedResponseHeaders
(
XWalkView
view
,
XWalkWebResourceRequest
request
,
XWalkWebResourceResponse
response
)
{
String
uri
=
request
.
getUrl
().
toString
();
commonOnReceivedResponseHeaders
(
uri
,
response
.
getStatusCode
());
}
@Override
public
void
onReceivedLoadError
(
XWalkView
view
,
int
errorCode
,
String
description
,
String
failingUrl
)
{
...
...
ABVJE_UI_Android/src/jp/agentec/abook/abv/ui/viewer/activity/ParentWebViewActivity.java
View file @
f819c828
...
...
@@ -99,33 +99,6 @@ public class ParentWebViewActivity extends ABVContentViewActivity {
}
}
protected
void
commonOnReceivedResponseHeaders
(
String
uri
,
int
statusCode
)
{
if
(
uri
.
contains
(
"vtour"
)
||
uri
.
contains
(
"authByCheck"
))
{
if
(
statusCode
>=
400
)
{
// エラーのため、空のURLをロードさせ、白い画面で表示させる
webViewLoadUrl
(
""
);
ABookAlertDialog
alertDialog
=
AlertDialogUtil
.
createAlertDialog
(
this
,
R
.
string
.
app_name
);
// リソースパターンの適用
alertDialog
.
setMessage
(
String
.
format
(
PatternStringUtil
.
patternToString
(
getApplicationContext
(),
R
.
string
.
error_msg_open_pano_edit
,
getUserPref
(
AppDefType
.
UserPrefKey
.
RESOURCE_PATTERN_TYPE
,
0
)),
statusCode
+
""
));
// リソースパターンの適用
alertDialog
.
setPositiveButton
(
PatternStringUtil
.
patternToInt
(
getApplicationContext
(),
R
.
string
.
ok
,
getUserPref
(
AppDefType
.
UserPrefKey
.
RESOURCE_PATTERN_TYPE
,
0
)),
new
DialogInterface
.
OnClickListener
()
{
@Override
public
void
onClick
(
DialogInterface
dialog
,
int
which
)
{
dialog
.
dismiss
();
finish
();
}
});
alertDialog
.
show
();
}
}
}
protected
void
commonProgressChanged
(
int
progress
)
{
setVisbilityProgress
(
true
);
if
(
progress
>=
100
)
{
...
...
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