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
d51ffc2d
Commit
d51ffc2d
authored
Aug 19, 2020
by
yuichiro ogawa
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
#39336 戻るボタンの挙動修正
parent
789d6a25
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
1 deletions
+13
-1
ABVJE_UI_Android/src/jp/agentec/abook/abv/ui/viewer/activity/OnlineHTMLWebViewActivity.java
+13
-1
No files found.
ABVJE_UI_Android/src/jp/agentec/abook/abv/ui/viewer/activity/OnlineHTMLWebViewActivity.java
View file @
d51ffc2d
...
@@ -10,6 +10,7 @@ import android.view.Window;
...
@@ -10,6 +10,7 @@ import android.view.Window;
import
android.webkit.CookieManager
;
import
android.webkit.CookieManager
;
import
android.webkit.DownloadListener
;
import
android.webkit.DownloadListener
;
import
android.webkit.URLUtil
;
import
android.webkit.URLUtil
;
import
android.webkit.WebBackForwardList
;
import
android.webkit.WebSettings
;
import
android.webkit.WebSettings
;
import
android.webkit.WebView
;
import
android.webkit.WebView
;
import
android.webkit.WebViewClient
;
import
android.webkit.WebViewClient
;
...
@@ -75,7 +76,18 @@ public class OnlineHTMLWebViewActivity extends ABVContentViewActivity {
...
@@ -75,7 +76,18 @@ public class OnlineHTMLWebViewActivity extends ABVContentViewActivity {
backButton
.
setOnClickListener
(
new
View
.
OnClickListener
()
{
backButton
.
setOnClickListener
(
new
View
.
OnClickListener
()
{
@Override
@Override
public
void
onClick
(
View
v
)
{
public
void
onClick
(
View
v
)
{
webView
.
goBack
();
// PDFダウンロードの場合はスキップする
WebBackForwardList
bfList
=
webView
.
copyBackForwardList
();
for
(
int
i
=
0
,
len
=
bfList
.
getCurrentIndex
();
i
<
len
;
i
++)
{
String
url
=
bfList
.
getItemAtIndex
(
len
-
i
).
getUrl
();
if
(
url
.
contains
(
"fileSelect"
))
{
continue
;
}
if
(
webView
.
canGoBackOrForward
(-
1
*
(
i
+
1
)))
{
webView
.
goBackOrForward
(-
1
*
(
i
+
1
));
break
;
}
}
}
}
});
});
}
}
...
...
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