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
f1ec9633
Commit
f1ec9633
authored
3 years ago
by
Kim Jinsung
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
プッシュメッセージからチャット・協業開く時に毎回Activity作成する問題対応
チャット画面が表示中には新しくActivity作成するのではなく、その画面をリロードする処理
parent
6ffc5bed
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
40 additions
and
8 deletions
+40
-8
ABVJE_UI_Android/src/jp/agentec/abook/abv/ui/common/activity/ShowPushMessageDailogActivity.java
+13
-8
ABVJE_UI_Android/src/jp/agentec/abook/abv/ui/home/activity/ChatWebViewActivity.java
+13
-0
ABVJE_UI_Android/src/jp/agentec/abook/abv/ui/home/helper/ActivityHandlingHelper.java
+14
-0
No files found.
ABVJE_UI_Android/src/jp/agentec/abook/abv/ui/common/activity/ShowPushMessageDailogActivity.java
View file @
f1ec9633
...
@@ -161,15 +161,20 @@ public class ShowPushMessageDailogActivity extends ABVUIActivity {
...
@@ -161,15 +161,20 @@ public class ShowPushMessageDailogActivity extends ABVUIActivity {
String
collaborationType
=
extras
.
getString
(
AppDefType
.
ChatPushMessageKey
.
collaborationType
);
String
collaborationType
=
extras
.
getString
(
AppDefType
.
ChatPushMessageKey
.
collaborationType
);
String
roomType
=
extras
.
getString
(
AppDefType
.
ChatPushMessageKey
.
roomType
);
String
roomType
=
extras
.
getString
(
AppDefType
.
ChatPushMessageKey
.
roomType
);
if
(
roomId
>
0
&&
!
StringUtil
.
isNullOrEmpty
(
roomName
))
{
if
(
roomId
>
0
&&
!
StringUtil
.
isNullOrEmpty
(
roomName
))
{
if
(
StringUtil
.
isNullOrEmpty
(
collaborationType
))
{
ChatWebViewActivity
chatWebViewActivity
=
activityHandlingHelper
.
getChatWebViewActivity
();
ActivityHandlingHelper
.
getInstance
().
startChatWebViewActivity
(
roomId
,
roomName
,
ChatWebViewActivity
.
class
.
getName
(),
""
);
if
(
chatWebViewActivity
!=
null
)
{
chatWebViewActivity
.
reloadRoomViewCollaboration
(
roomId
,
roomName
,
collaborationType
);
}
else
{
}
else
{
ActivityHandlingHelper
.
getInstance
().
startChatWebViewActivityWithCollaboration
(
roomId
,
if
(
StringUtil
.
isNullOrEmpty
(
collaborationType
))
{
roomName
,
ActivityHandlingHelper
.
getInstance
().
startChatWebViewActivity
(
roomId
,
roomName
,
ChatWebViewActivity
.
class
.
getName
(),
""
);
collaborationType
,
}
else
{
roomType
,
ActivityHandlingHelper
.
getInstance
().
startChatWebViewActivityWithCollaboration
(
roomId
,
ChatWebViewActivity
.
class
.
getName
(),
roomName
,
""
);
collaborationType
,
roomType
,
ChatWebViewActivity
.
class
.
getName
(),
""
);
}
}
}
}
}
}
}
...
...
This diff is collapsed.
Click to expand it.
ABVJE_UI_Android/src/jp/agentec/abook/abv/ui/home/activity/ChatWebViewActivity.java
View file @
f1ec9633
...
@@ -1391,4 +1391,17 @@ public class ChatWebViewActivity extends CommunicationWebViewActivity implements
...
@@ -1391,4 +1391,17 @@ public class ChatWebViewActivity extends CommunicationWebViewActivity implements
// 最後のチャットのルーム
// 最後のチャットのルーム
PreferenceUtil
.
putUserPref
(
getApplicationContext
(),
AppDefType
.
UserPrefKey
.
CHAT_LAST_ROOMID
,
roomId
);
PreferenceUtil
.
putUserPref
(
getApplicationContext
(),
AppDefType
.
UserPrefKey
.
CHAT_LAST_ROOMID
,
roomId
);
}
}
/**
* プッシュメッセージ受信し、既にChatWebViewActivityが表示中の時、WebViewリロードする。
* @param roomId ルームID
* @param roomName ルーム名
* @param collaborationType 協業タイプ
*/
public
void
reloadRoomViewCollaboration
(
Long
roomId
,
String
roomName
,
String
collaborationType
)
{
chatData
.
roomId
=
roomId
;
chatData
.
roomName
=
roomName
;
chatData
.
setStrCollaborationType
(
collaborationType
);
registChatRoomPageLoader
();
}
}
}
This diff is collapsed.
Click to expand it.
ABVJE_UI_Android/src/jp/agentec/abook/abv/ui/home/helper/ActivityHandlingHelper.java
View file @
f1ec9633
...
@@ -1885,6 +1885,20 @@ public class ActivityHandlingHelper extends ABookHelper implements RemoteObserve
...
@@ -1885,6 +1885,20 @@ public class ActivityHandlingHelper extends ABookHelper implements RemoteObserve
}
}
/**
/**
* 使用中のChatWebViewActivityを返す
* @return 使用中のChatWebViewActivity
*/
public
ChatWebViewActivity
getChatWebViewActivity
()
{
if
(!
currentActivityStack
.
isEmpty
())
{
for
(
final
ABVAuthenticatedActivity
activity
:
currentActivityStack
)
{
if
(
activity
instanceof
ChatWebViewActivity
)
{
return
(
ChatWebViewActivity
)
activity
;
}
}
}
return
null
;
}
/**
* 設定画面から戻る用
* 設定画面から戻る用
* @return 設定画面へ遷移前の画面
* @return 設定画面へ遷移前の画面
*/
*/
...
...
This diff is collapsed.
Click to expand it.
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