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
84ac2a8e
Commit
84ac2a8e
authored
Apr 15, 2021
by
Kim Jinsung
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bug #41845 コンテンツ閲覧画面でマーキングボタンタップ時に、アプリが停止する。
parent
06a81464
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
46 additions
and
1 deletions
+46
-1
ABVJE_UI_Android/src/jp/agentec/abook/abv/ui/viewer/activity/ContentViewActivity.java
+46
-1
No files found.
ABVJE_UI_Android/src/jp/agentec/abook/abv/ui/viewer/activity/ContentViewActivity.java
View file @
84ac2a8e
...
...
@@ -2820,7 +2820,52 @@ public class ContentViewActivity extends ABVContentViewActivity {
meetingManager
.
sendWs
(
MeetingManager
.
CMD_MOVEPAGE
,
getContentId
(),
jumpPage
,
null
,
null
);
}
}
/**
* ページを削除・作成する(ハイライト表示のため、全てのページ再作成)
* 検索結果一覧からのページ選択時&ハイライトリセット時利用
* @param jumpPage ジャンプページNO
*/
private
void
addOrRemoveSearchPages
(
final
int
jumpPage
)
{
final
int
currentPage
=
mCurrentPageNumber
;
mCurrentPageNumber
=
jumpPage
;
//作成済みの現在&前後ページの場合、そのページ削除
if
(
Math
.
abs
(
jumpPage
-
currentPage
)
<
2
)
{
removePage
(
jumpPage
);
}
//ジャンプページ作成
addPageView
(
jumpPage
);
new
Handler
().
postDelayed
(
new
Runnable
()
{
@Override
public
void
run
()
{
// ジャンプするページに応じて必要なだけ作成・削除する
//Jump以前の後ページ情報削除
if
(
currentPage
!=
jumpPage
)
{
removePage
(
currentPage
);
}
//Jump以前の後ページ情報削除
int
nextPage
=
currentPage
+
1
;
if
(
jumpPage
!=
nextPage
)
{
removePage
(
nextPage
);
}
//Jump以前の前ページ情報削除
int
prevPage
=
currentPage
-
1
;
if
(
jumpPage
!=
prevPage
)
{
removePage
(
prevPage
);
}
//jumpした前後ページ情報作成
addPageView
(
jumpPage
+
1
);
addPageView
(
jumpPage
-
1
);
}
},
500
);
}
/**
* ページを削除・作成する(現在・前後ページはしない)
* 検索結果以外のところからページジャンプ時利用
* @param jumpPage ジャンプページNO
*/
private
void
addOrRemovePages
(
final
int
jumpPage
)
{
final
int
currentPage
=
mCurrentPageNumber
;
mCurrentPageNumber
=
jumpPage
;
...
...
@@ -2856,7 +2901,7 @@ public class ContentViewActivity extends ABVContentViewActivity {
// ページ別ログ
ContentLogUtil
.
getInstance
().
contentPageMove
(
contentId
,
readingLogId
,
mCurrentPageNumber
,
jumpPage
);
addOrRemovePages
(
jumpPage
);
addOrRemove
Search
Pages
(
jumpPage
);
mPageScrollView
.
setZoomingFlag
(
false
);
mPageScrollView
.
post
(
new
Runnable
()
{
@Override
...
...
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