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
3279aed8
Commit
3279aed8
authored
Sep 06, 2019
by
Lee Jaebin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
プッシュメッセージ詳細画面タップ時、該当のプッシュメッセージ以外で全てが既読であれば、バッジ表示を非表示に変更するように修正
parent
d90aa885
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
29 additions
and
18 deletions
+29
-18
ABVJE_UI_Android/src/jp/agentec/abook/abv/ui/common/activity/ABVUIActivity.java
+23
-5
ABVJE_UI_Android/src/jp/agentec/abook/abv/ui/home/activity/OperationListActivity.java
+3
-4
ABVJE_UI_Android/src/jp/agentec/abook/abv/ui/home/activity/OperationRelatedContentActivity.java
+3
-9
No files found.
ABVJE_UI_Android/src/jp/agentec/abook/abv/ui/common/activity/ABVUIActivity.java
View file @
3279aed8
...
@@ -66,6 +66,7 @@ import android.widget.Toast;
...
@@ -66,6 +66,7 @@ import android.widget.Toast;
import
com.handmark.pulltorefresh.library.PullToRefreshBase
;
import
com.handmark.pulltorefresh.library.PullToRefreshBase
;
import
java.nio.charset.StandardCharsets
;
import
java.nio.charset.StandardCharsets
;
import
java.util.ArrayList
;
import
java.util.List
;
import
java.util.List
;
public
abstract
class
ABVUIActivity
extends
ABVAuthenticatedActivity
{
public
abstract
class
ABVUIActivity
extends
ABVAuthenticatedActivity
{
...
@@ -76,6 +77,7 @@ public abstract class ABVUIActivity extends ABVAuthenticatedActivity {
...
@@ -76,6 +77,7 @@ public abstract class ABVUIActivity extends ABVAuthenticatedActivity {
protected
TextView
mUpdatedDate
;
// add by jang
protected
TextView
mUpdatedDate
;
// add by jang
protected
TextView
mLoadingText
;
// add by jang;
protected
TextView
mLoadingText
;
// add by jang;
protected
ImageButton
communicationButton
;
// コミュニケーションボタン
private
Dialog
mCommunicationMenuDialog
;
private
Dialog
mCommunicationMenuDialog
;
private
Dialog
mOperationSelectDialog
;
private
Dialog
mOperationSelectDialog
;
private
ListView
mOperationSelectListView
;
private
ListView
mOperationSelectListView
;
...
@@ -642,14 +644,14 @@ public abstract class ABVUIActivity extends ABVAuthenticatedActivity {
...
@@ -642,14 +644,14 @@ public abstract class ABVUIActivity extends ABVAuthenticatedActivity {
mPushMessageListDialog
.
setContentView
(
R
.
layout
.
push_message_list_dialog
);
mPushMessageListDialog
.
setContentView
(
R
.
layout
.
push_message_list_dialog
);
mPushMessageListView
=
(
ListView
)
mPushMessageListDialog
.
findViewById
(
R
.
id
.
lv_push_message
);
mPushMessageListView
=
(
ListView
)
mPushMessageListDialog
.
findViewById
(
R
.
id
.
lv_push_message
);
List
<
PushMessageDto
>
pushMessageDtoList
=
pushMessageLogic
.
getAllPushMessageList
();
final
List
<
PushMessageDto
>
pushMessageDtoList
=
pushMessageLogic
.
getAllPushMessageList
();
mPushMessageListAdapter
=
new
PushMessageListAdapter
(
this
,
pushMessageDtoList
);
mPushMessageListAdapter
=
new
PushMessageListAdapter
(
this
,
pushMessageDtoList
);
mPushMessageListView
.
setAdapter
(
mPushMessageListAdapter
);
mPushMessageListView
.
setAdapter
(
mPushMessageListAdapter
);
mPushMessageListAdapter
.
setAdapterListener
(
new
PushMessageListAdapter
.
PushMessageListAdapterListener
()
{
mPushMessageListAdapter
.
setAdapterListener
(
new
PushMessageListAdapter
.
PushMessageListAdapterListener
()
{
@Override
@Override
public
void
onDetailView
(
final
PushMessageDto
dto
)
{
public
void
onDetailView
(
final
PushMessageDto
dto
)
{
showPushMessageDetailView
(
dto
);
showPushMessageDetailView
(
dto
,
pushMessageDtoList
);
}
}
});
});
mPushMessageListView
.
invalidate
();
mPushMessageListView
.
invalidate
();
...
@@ -676,7 +678,7 @@ public abstract class ABVUIActivity extends ABVAuthenticatedActivity {
...
@@ -676,7 +678,7 @@ public abstract class ABVUIActivity extends ABVAuthenticatedActivity {
}
}
// プッシュメッセージの詳細表示
// プッシュメッセージの詳細表示
private
void
showPushMessageDetailView
(
final
PushMessageDto
dto
)
{
private
void
showPushMessageDetailView
(
final
PushMessageDto
dto
,
List
<
PushMessageDto
>
pushMessageDtoList
)
{
dto
.
readingFlg
=
true
;
dto
.
readingFlg
=
true
;
TextView
messageTextView
=
(
TextView
)
mPushMessageListDialog
.
findViewById
(
R
.
id
.
tv_message
);
TextView
messageTextView
=
(
TextView
)
mPushMessageListDialog
.
findViewById
(
R
.
id
.
tv_message
);
...
@@ -689,7 +691,14 @@ public abstract class ABVUIActivity extends ABVAuthenticatedActivity {
...
@@ -689,7 +691,14 @@ public abstract class ABVUIActivity extends ABVAuthenticatedActivity {
sendUserTextView
.
setText
(
dto
.
pushSendLoginId
);
sendUserTextView
.
setText
(
dto
.
pushSendLoginId
);
pushMessageLogic
.
updateReadingFlg
(
dto
.
pushMessageId
);
pushMessageLogic
.
updateReadingFlg
(
dto
.
pushMessageId
);
List
<
PushMessageDto
>
checkPushMessageList
=
new
ArrayList
<>();
checkPushMessageList
.
addAll
(
pushMessageDtoList
);
checkPushMessageList
.
remove
(
dto
);
// 他のプッシュメッセージで未読がなければ、バッジを外す
if
(!
checkUnReadCommunication
(
checkPushMessageList
))
{
communicationButton
.
setImageResource
(
R
.
drawable
.
ic_communication_menu
);
}
showPushMessgeListView
(
false
);
showPushMessgeListView
(
false
);
}
}
...
@@ -913,9 +922,18 @@ public abstract class ABVUIActivity extends ABVAuthenticatedActivity {
...
@@ -913,9 +922,18 @@ public abstract class ABVUIActivity extends ABVAuthenticatedActivity {
}
}
// コミュニケーションのアイコン設定(未既読があれば、バッチ付きアイコンでセット)
// コミュニケーションのアイコン設定(未既読があれば、バッチ付きアイコンでセット)
protected
void
setCommunicationImageButton
(
ImageButton
communicationButton
)
{
protected
void
setCommunicationImageButton
()
{
List
<
PushMessageDto
>
pushMessageDtoList
=
pushMessageLogic
.
getAllPushMessageList
();
List
<
PushMessageDto
>
pushMessageDtoList
=
pushMessageLogic
.
getAllPushMessageList
();
boolean
existUnreadFlg
=
checkUnReadCommunication
(
pushMessageDtoList
);
communicationButton
.
setImageResource
(
existUnreadFlg
?
R
.
drawable
.
ic_communication_menu_with_badge
:
R
.
drawable
.
ic_communication_menu
);
}
/**
* 未読のプッシュメッセージが存在するかチェック
* @param pushMessageDtoList チェックするリスト
* @return
*/
private
boolean
checkUnReadCommunication
(
List
<
PushMessageDto
>
pushMessageDtoList
)
{
boolean
existUnreadFlg
=
false
;
boolean
existUnreadFlg
=
false
;
for
(
PushMessageDto
pushMessageDto
:
pushMessageDtoList
)
{
for
(
PushMessageDto
pushMessageDto
:
pushMessageDtoList
)
{
if
(!
pushMessageDto
.
readingFlg
)
{
if
(!
pushMessageDto
.
readingFlg
)
{
...
@@ -923,6 +941,6 @@ public abstract class ABVUIActivity extends ABVAuthenticatedActivity {
...
@@ -923,6 +941,6 @@ public abstract class ABVUIActivity extends ABVAuthenticatedActivity {
break
;
break
;
}
}
}
}
communicationButton
.
setImageResource
(
existUnreadFlg
?
R
.
drawable
.
ic_communication_menu_with_badge
:
R
.
drawable
.
ic_communication_menu
)
;
return
existUnreadFlg
;
}
}
}
}
ABVJE_UI_Android/src/jp/agentec/abook/abv/ui/home/activity/OperationListActivity.java
View file @
3279aed8
...
@@ -122,7 +122,6 @@ public class OperationListActivity extends ABVUIActivity {
...
@@ -122,7 +122,6 @@ public class OperationListActivity extends ABVUIActivity {
private
ImageButton
mViewModeButton
;
// パンネル・リスト表示ボタン
private
ImageButton
mViewModeButton
;
// パンネル・リスト表示ボタン
private
ImageButton
mSearchButton
;
// 検索ボタン
private
ImageButton
mSearchButton
;
// 検索ボタン
private
ImageButton
mCommunicationButton
;
// コミュニケーションボタン
private
ImageButton
mCommonContentButton
;
// 共通資料ボタン
private
ImageButton
mCommonContentButton
;
// 共通資料ボタン
private
ImageButton
mOperationBatchSyncButton
;
// カテゴリの一括同期ボタン
private
ImageButton
mOperationBatchSyncButton
;
// カテゴリの一括同期ボタン
private
ImageButton
mCategoryLocationButton
;
// カテゴリ選択ボタン
private
ImageButton
mCategoryLocationButton
;
// カテゴリ選択ボタン
...
@@ -206,7 +205,7 @@ public class OperationListActivity extends ABVUIActivity {
...
@@ -206,7 +205,7 @@ public class OperationListActivity extends ABVUIActivity {
mOperationTitle
=
(
TextView
)
findViewById
(
R
.
id
.
operation_title
);
mOperationTitle
=
(
TextView
)
findViewById
(
R
.
id
.
operation_title
);
mOperationBatchSyncButton
=
(
ImageButton
)
findViewById
(
R
.
id
.
btn_batch_sync
);
mOperationBatchSyncButton
=
(
ImageButton
)
findViewById
(
R
.
id
.
btn_batch_sync
);
mC
ommunicationButton
=
(
ImageButton
)
findViewById
(
R
.
id
.
btn_communication_menu
);
c
ommunicationButton
=
(
ImageButton
)
findViewById
(
R
.
id
.
btn_communication_menu
);
mCommonContentButton
=
(
ImageButton
)
findViewById
(
R
.
id
.
btn_common_content
);
mCommonContentButton
=
(
ImageButton
)
findViewById
(
R
.
id
.
btn_common_content
);
mCategoryLocationButton
=
(
ImageButton
)
findViewById
(
R
.
id
.
btn_category_location
);
mCategoryLocationButton
=
(
ImageButton
)
findViewById
(
R
.
id
.
btn_category_location
);
...
@@ -242,7 +241,7 @@ public class OperationListActivity extends ABVUIActivity {
...
@@ -242,7 +241,7 @@ public class OperationListActivity extends ABVUIActivity {
});
});
// コミュニケーションボタン
// コミュニケーションボタン
mC
ommunicationButton
.
setOnClickListener
(
new
View
.
OnClickListener
()
{
c
ommunicationButton
.
setOnClickListener
(
new
View
.
OnClickListener
()
{
@Override
@Override
public
void
onClick
(
View
v
)
{
public
void
onClick
(
View
v
)
{
showCommunicationMenuDialog
();
showCommunicationMenuDialog
();
...
@@ -354,7 +353,7 @@ public class OperationListActivity extends ABVUIActivity {
...
@@ -354,7 +353,7 @@ public class OperationListActivity extends ABVUIActivity {
private
void
configurationToolbarIcon
()
{
private
void
configurationToolbarIcon
()
{
// バッチを付けるか判定して、イメージを設定
// バッチを付けるか判定して、イメージを設定
setCommunicationImageButton
(
mCommunicationButton
);
setCommunicationImageButton
();
// 作業種別表示・非表示
// 作業種別表示・非表示
if
(
mOperationGroupMasterServiceOperationFlg
)
{
if
(
mOperationGroupMasterServiceOperationFlg
)
{
...
...
ABVJE_UI_Android/src/jp/agentec/abook/abv/ui/home/activity/OperationRelatedContentActivity.java
View file @
3279aed8
...
@@ -8,8 +8,6 @@ import android.view.KeyEvent;
...
@@ -8,8 +8,6 @@ import android.view.KeyEvent;
import
android.view.View
;
import
android.view.View
;
import
android.widget.Button
;
import
android.widget.Button
;
import
android.widget.ImageButton
;
import
android.widget.ImageButton
;
import
android.widget.ImageView
;
import
android.widget.LinearLayout
;
import
android.widget.ListView
;
import
android.widget.ListView
;
import
android.widget.TextView
;
import
android.widget.TextView
;
import
android.widget.Toast
;
import
android.widget.Toast
;
...
@@ -18,8 +16,6 @@ import java.util.ArrayList;
...
@@ -18,8 +16,6 @@ import java.util.ArrayList;
import
java.util.List
;
import
java.util.List
;
import
jp.agentec.abook.abv.bl.acms.client.json.content.ContentJSON
;
import
jp.agentec.abook.abv.bl.acms.client.json.content.ContentJSON
;
import
jp.agentec.abook.abv.bl.common.Constant
;
import
jp.agentec.abook.abv.bl.common.constant.ABookKeys
;
import
jp.agentec.abook.abv.bl.common.exception.ExceptionHandler
;
import
jp.agentec.abook.abv.bl.common.exception.ExceptionHandler
;
import
jp.agentec.abook.abv.bl.common.log.Logger
;
import
jp.agentec.abook.abv.bl.common.log.Logger
;
import
jp.agentec.abook.abv.bl.download.ContentZipDownloadNotification
;
import
jp.agentec.abook.abv.bl.download.ContentZipDownloadNotification
;
...
@@ -33,7 +29,6 @@ import jp.agentec.abook.abv.ui.common.activity.ABVUIActivity;
...
@@ -33,7 +29,6 @@ import jp.agentec.abook.abv.ui.common.activity.ABVUIActivity;
import
jp.agentec.abook.abv.ui.common.appinfo.AppDefType
;
import
jp.agentec.abook.abv.ui.common.appinfo.AppDefType
;
import
jp.agentec.abook.abv.ui.common.constant.ErrorCode
;
import
jp.agentec.abook.abv.ui.common.constant.ErrorCode
;
import
jp.agentec.abook.abv.ui.common.constant.ErrorMessage
;
import
jp.agentec.abook.abv.ui.common.constant.ErrorMessage
;
import
jp.agentec.abook.abv.ui.common.constant.NaviConsts
;
import
jp.agentec.abook.abv.ui.common.dialog.ABookAlertDialog
;
import
jp.agentec.abook.abv.ui.common.dialog.ABookAlertDialog
;
import
jp.agentec.abook.abv.ui.common.util.ABVToastUtil
;
import
jp.agentec.abook.abv.ui.common.util.ABVToastUtil
;
import
jp.agentec.abook.abv.ui.common.util.AlertDialogUtil
;
import
jp.agentec.abook.abv.ui.common.util.AlertDialogUtil
;
...
@@ -53,7 +48,6 @@ public class OperationRelatedContentActivity extends ABVUIActivity {
...
@@ -53,7 +48,6 @@ public class OperationRelatedContentActivity extends ABVUIActivity {
private
ImageButton
mOperationHomeButton
;
// ホームボタン
private
ImageButton
mOperationHomeButton
;
// ホームボタン
private
ImageButton
mOperationRelatedContentButton
;
// 関連資料ボタン
private
ImageButton
mOperationRelatedContentButton
;
// 関連資料ボタン
private
ImageButton
mCommunicationButton
;
// コミュニケーションボタン
private
TextView
mTxtOperationRelatedContent
;
private
TextView
mTxtOperationRelatedContent
;
private
Button
mAllSaveButton
;
private
Button
mAllSaveButton
;
...
@@ -73,7 +67,7 @@ public class OperationRelatedContentActivity extends ABVUIActivity {
...
@@ -73,7 +67,7 @@ public class OperationRelatedContentActivity extends ABVUIActivity {
// 共通資料ボタン
// 共通資料ボタン
mOperationRelatedContentButton
=
(
ImageButton
)
findViewById
(
R
.
id
.
btn_common_content
);
mOperationRelatedContentButton
=
(
ImageButton
)
findViewById
(
R
.
id
.
btn_common_content
);
// コミュニケーションボタン
// コミュニケーションボタン
mC
ommunicationButton
=
(
ImageButton
)
findViewById
(
R
.
id
.
btn_communication_menu
);
c
ommunicationButton
=
(
ImageButton
)
findViewById
(
R
.
id
.
btn_communication_menu
);
// 一括保存ボタン
// 一括保存ボタン
mAllSaveButton
=
(
Button
)
findViewById
(
R
.
id
.
btn_all_save
);
mAllSaveButton
=
(
Button
)
findViewById
(
R
.
id
.
btn_all_save
);
...
@@ -99,9 +93,9 @@ public class OperationRelatedContentActivity extends ABVUIActivity {
...
@@ -99,9 +93,9 @@ public class OperationRelatedContentActivity extends ABVUIActivity {
// 共通資料ボタンの非活性化
// 共通資料ボタンの非活性化
mOperationRelatedContentButton
.
setEnabled
(
false
);
mOperationRelatedContentButton
.
setEnabled
(
false
);
// バッチを付けるか判定して、イメージを設定
// バッチを付けるか判定して、イメージを設定
setCommunicationImageButton
(
mCommunicationButton
);
setCommunicationImageButton
();
// コミュニケーションボタン
// コミュニケーションボタン
mC
ommunicationButton
.
setOnClickListener
(
new
View
.
OnClickListener
()
{
c
ommunicationButton
.
setOnClickListener
(
new
View
.
OnClickListener
()
{
@Override
@Override
public
void
onClick
(
View
v
)
{
public
void
onClick
(
View
v
)
{
showCommunicationMenuDialog
();
showCommunicationMenuDialog
();
...
...
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