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
bf210b59
Commit
bf210b59
authored
Sep 12, 2021
by
onuma
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'communication/develop' into communication/develop_44459
parents
24a1b706
e1d1f60d
Show whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
124 additions
and
23 deletions
+124
-23
ABVJE_Res_Default_Android/res/values-ja/strings.xml
+1
-0
ABVJE_Res_Default_Android/res/values-ko/strings.xml
+2
-0
ABVJE_Res_Default_Android/res/values/strings.xml
+1
-0
ABVJE_UI_Android/src/jp/agentec/abook/abv/cl/push/ABVFcmListenerService.java
+1
-8
ABVJE_UI_Android/src/jp/agentec/abook/abv/ui/common/activity/ABVAuthenticatedActivity.java
+0
-4
ABVJE_UI_Android/src/jp/agentec/abook/abv/ui/common/activity/ShowPushMessageDailogActivity.java
+16
-4
ABVJE_UI_Android/src/jp/agentec/abook/abv/ui/home/activity/ChatWebViewActivity.java
+18
-5
ABVJE_UI_Android/src/jp/agentec/abook/abv/ui/home/helper/ActivityHandlingHelper.java
+28
-0
ABVJE_UI_Android/src/jp/agentec/abook/abv/ui/viewer/activity/ContentViewActivity.java
+52
-2
ABVJE_UI_Android/src/jp/agentec/abook/abv/ui/viewer/view/action/VideoMountAction.java
+5
-0
No files found.
ABVJE_Res_Default_Android/res/values-ja/strings.xml
View file @
bf210b59
...
@@ -1500,4 +1500,5 @@
...
@@ -1500,4 +1500,5 @@
<string
name=
"msg_error_favorites_100_over"
>
お気に入りは最大100件までです。
</string>
<string
name=
"msg_error_favorites_100_over"
>
お気に入りは最大100件までです。
</string>
<string
name=
"msg_eroor_network_offline"
>
接続しているネットワークがありません。
</string>
<string
name=
"msg_eroor_network_offline"
>
接続しているネットワークがありません。
</string>
<string
name=
"msg_error_connection_error_meeting_room"
>
会議室サーバに接続できませんでした。
</string>
<string
name=
"msg_error_connection_error_meeting_room"
>
会議室サーバに接続できませんでした。
</string>
<string
name=
"msg_fail_collaboration_not_action_allow"
>
文書協業中には利用できない機能です。
</string>
</resources>
</resources>
ABVJE_Res_Default_Android/res/values-ko/strings.xml
View file @
bf210b59
...
@@ -1505,4 +1505,5 @@
...
@@ -1505,4 +1505,5 @@
<string
name=
"msg_error_favorites_100_over"
>
즐겨찾기는 최대 100개까지 입니다.
</string>
<string
name=
"msg_error_favorites_100_over"
>
즐겨찾기는 최대 100개까지 입니다.
</string>
<string
name=
"msg_eroor_network_offline"
>
연결된 네트워크가 없습니다.
</string>
<string
name=
"msg_eroor_network_offline"
>
연결된 네트워크가 없습니다.
</string>
<string
name=
"msg_error_connection_error_meeting_room"
>
회의실 서버에 연결할 수 없습니다.
</string>
<string
name=
"msg_error_connection_error_meeting_room"
>
회의실 서버에 연결할 수 없습니다.
</string>
<string
name=
"msg_fail_collaboration_not_action_allow"
>
문서협업 중에는 이용할 수 없는 기능입니다.
</string>
</resources>
</resources>
\ No newline at end of file
ABVJE_Res_Default_Android/res/values/strings.xml
View file @
bf210b59
...
@@ -1501,4 +1501,5 @@
...
@@ -1501,4 +1501,5 @@
<string
name=
"msg_error_favorites_100_over"
>
You can have up to 100 favorites.
</string>
<string
name=
"msg_error_favorites_100_over"
>
You can have up to 100 favorites.
</string>
<string
name=
"msg_eroor_network_offline"
>
There is no network connected.
</string>
<string
name=
"msg_eroor_network_offline"
>
There is no network connected.
</string>
<string
name=
"msg_error_connection_error_meeting_room"
>
Could not connect to the meeting room server.
</string>
<string
name=
"msg_error_connection_error_meeting_room"
>
Could not connect to the meeting room server.
</string>
<string
name=
"msg_fail_collaboration_not_action_allow"
>
This function cannot be used during document collaboration.
</string>
</resources>
</resources>
ABVJE_UI_Android/src/jp/agentec/abook/abv/cl/push/ABVFcmListenerService.java
View file @
bf210b59
...
@@ -113,6 +113,7 @@ public class ABVFcmListenerService extends FirebaseMessagingService {
...
@@ -113,6 +113,7 @@ public class ABVFcmListenerService extends FirebaseMessagingService {
*/
*/
private
void
showChatRoomPopupMessage
(
Map
<
String
,
String
>
messageMap
)
{
private
void
showChatRoomPopupMessage
(
Map
<
String
,
String
>
messageMap
)
{
String
messageBody
=
messageMap
.
get
(
AppDefType
.
PushMessageKey
.
message
);
String
messageBody
=
messageMap
.
get
(
AppDefType
.
PushMessageKey
.
message
);
Logger
.
d
(
"messageBody = "
+
messageBody
);
PushMessageJSON
json
;
PushMessageJSON
json
;
if
(
StringUtil
.
isNullOrEmpty
(
messageBody
))
{
if
(
StringUtil
.
isNullOrEmpty
(
messageBody
))
{
return
;
return
;
...
@@ -120,14 +121,6 @@ public class ABVFcmListenerService extends FirebaseMessagingService {
...
@@ -120,14 +121,6 @@ public class ABVFcmListenerService extends FirebaseMessagingService {
json
=
new
PushMessageJSON
(
messageBody
);
json
=
new
PushMessageJSON
(
messageBody
);
Activity
currentActivity
=
ActivityHandlingHelper
.
getInstance
().
getCurrentActivity
();
Activity
currentActivity
=
ActivityHandlingHelper
.
getInstance
().
getCurrentActivity
();
if
(
currentActivity
.
getClass
().
equals
(
ChatWebViewActivity
.
class
))
{
ChatWebViewActivity
chatWebViewActivity
=
(
ChatWebViewActivity
)
currentActivity
;
if
(
chatWebViewActivity
.
getRoomID
().
equals
(
json
.
getRoomId
()))
{
// push messageと同じ部屋にいる場合はpushmessageを送信しない。
return
;
}
}
String
baseActivityName
=
currentActivity
.
getClass
().
getName
();
String
baseActivityName
=
currentActivity
.
getClass
().
getName
();
if
(
currentActivity
.
getClass
().
equals
(
HTMLWebViewActivity
.
class
)
||
if
(
currentActivity
.
getClass
().
equals
(
HTMLWebViewActivity
.
class
)
||
currentActivity
.
getClass
().
equals
(
ContentViewActivity
.
class
)
||
currentActivity
.
getClass
().
equals
(
ContentViewActivity
.
class
)
||
...
...
ABVJE_UI_Android/src/jp/agentec/abook/abv/ui/common/activity/ABVAuthenticatedActivity.java
View file @
bf210b59
...
@@ -1319,10 +1319,6 @@ public abstract class ABVAuthenticatedActivity extends ABVActivity implements Co
...
@@ -1319,10 +1319,6 @@ public abstract class ABVAuthenticatedActivity extends ABVActivity implements Co
// 協業
// 協業
String
messageText
=
json
.
getMessage
();
String
messageText
=
json
.
getMessage
();
if
(
json
.
isCollaboration
())
{
messageText
=
getString
(
R
.
string
.
msg_invite_collaboration
);
}
Intent
pushMsgDialog
=
new
Intent
(
context
,
ShowPushMessageDailogActivity
.
class
);
Intent
pushMsgDialog
=
new
Intent
(
context
,
ShowPushMessageDailogActivity
.
class
);
pushMsgDialog
.
putExtra
(
AppDefType
.
PushMessageKey
.
message
,
messageText
);
pushMsgDialog
.
putExtra
(
AppDefType
.
PushMessageKey
.
message
,
messageText
);
pushMsgDialog
.
putExtra
(
AppDefType
.
PushMessageKey
.
data
,
json
.
getData
());
pushMsgDialog
.
putExtra
(
AppDefType
.
PushMessageKey
.
data
,
json
.
getData
());
...
...
ABVJE_UI_Android/src/jp/agentec/abook/abv/ui/common/activity/ShowPushMessageDailogActivity.java
View file @
bf210b59
...
@@ -124,24 +124,31 @@ public class ShowPushMessageDailogActivity extends ABVUIActivity {
...
@@ -124,24 +124,31 @@ public class ShowPushMessageDailogActivity extends ABVUIActivity {
isMeetingRoomConnected
=
MeetingManager
.
getInstance
().
isConnected
();
isMeetingRoomConnected
=
MeetingManager
.
getInstance
().
isConnected
();
isCollabration
=
MeetingManager
.
getInstance
().
isCollaboration
();
isCollabration
=
MeetingManager
.
getInstance
().
isCollaboration
();
Bundle
extras
=
getIntent
().
getExtras
();
Bundle
extras
=
getIntent
().
getExtras
();
if
(
extras
!=
null
&&
!
isMeetingRoomConnected
)
{
if
(
isMeetingRoomConnected
||
isCollabration
)
{
showCannotMoveChatRoomDialog
();
}
else
{
if
(
extras
!=
null
)
{
boolean
isNewVersion
=
extras
.
getBoolean
(
AppDefType
.
ChatPushMessageKey
.
needsDisplayOperationOrOperationRelatedContentScreen
);
boolean
isNewVersion
=
extras
.
getBoolean
(
AppDefType
.
ChatPushMessageKey
.
needsDisplayOperationOrOperationRelatedContentScreen
);
if
(
isNewVersion
)
{
if
(
isNewVersion
)
{
setResult
(
ABookCommConstants
.
PUSH_MESSAGE_DLG_RESULT
.
OK
,
getIntent
());
setResult
(
ABookCommConstants
.
PUSH_MESSAGE_DLG_RESULT
.
OK
,
getIntent
());
}
else
{
}
else
{
moveChatRoom
(
extras
);
moveChatRoom
(
extras
);
}
}
finish
();
}
}
if
(
isMeetingRoomConnected
||
isCollabration
)
{
showCannotMoveChatRoomDialog
();
}
}
dialog
.
dismiss
();
}
}
});
});
alertDialog
.
setNegativeButton
(
R
.
string
.
cancel
,
new
DialogInterface
.
OnClickListener
()
{
alertDialog
.
setNegativeButton
(
R
.
string
.
cancel
,
new
DialogInterface
.
OnClickListener
()
{
@Override
@Override
public
void
onClick
(
DialogInterface
dialog
,
int
which
)
{
public
void
onClick
(
DialogInterface
dialog
,
int
which
)
{
setResult
(
ABookCommConstants
.
PUSH_MESSAGE_DLG_RESULT
.
CANCEL
,
getIntent
());
setResult
(
ABookCommConstants
.
PUSH_MESSAGE_DLG_RESULT
.
CANCEL
,
getIntent
());
dialog
.
dismiss
();
}
});
alertDialog
.
setOnDismissListener
(
new
DialogInterface
.
OnDismissListener
()
{
@Override
public
void
onDismiss
(
DialogInterface
dialog
)
{
finish
();
finish
();
}
}
});
});
...
@@ -161,6 +168,10 @@ public class ShowPushMessageDailogActivity extends ABVUIActivity {
...
@@ -161,6 +168,10 @@ 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
))
{
ChatWebViewActivity
chatWebViewActivity
=
activityHandlingHelper
.
getChatWebViewActivity
();
if
(
chatWebViewActivity
!=
null
)
{
chatWebViewActivity
.
reloadRoomViewCollaboration
(
roomId
,
roomName
,
collaborationType
);
}
else
{
if
(
StringUtil
.
isNullOrEmpty
(
collaborationType
))
{
if
(
StringUtil
.
isNullOrEmpty
(
collaborationType
))
{
ActivityHandlingHelper
.
getInstance
().
startChatWebViewActivity
(
roomId
,
roomName
,
ChatWebViewActivity
.
class
.
getName
(),
""
);
ActivityHandlingHelper
.
getInstance
().
startChatWebViewActivity
(
roomId
,
roomName
,
ChatWebViewActivity
.
class
.
getName
(),
""
);
}
else
{
}
else
{
...
@@ -173,6 +184,7 @@ public class ShowPushMessageDailogActivity extends ABVUIActivity {
...
@@ -173,6 +184,7 @@ public class ShowPushMessageDailogActivity extends ABVUIActivity {
}
}
}
}
}
}
}
/**
/**
* 遠隔支援中(会議室接続中)はチャットルームにはいけない。
* 遠隔支援中(会議室接続中)はチャットルームにはいけない。
...
...
ABVJE_UI_Android/src/jp/agentec/abook/abv/ui/home/activity/ChatWebViewActivity.java
View file @
bf210b59
...
@@ -820,20 +820,18 @@ public class ChatWebViewActivity extends CommunicationWebViewActivity implements
...
@@ -820,20 +820,18 @@ public class ChatWebViewActivity extends CommunicationWebViewActivity implements
if
(
startPIP
)
{
if
(
startPIP
)
{
Intent
intent
=
new
Intent
();
Intent
intent
=
new
Intent
();
intent
.
setClass
(
this
,
ChatWebViewActivity
.
class
);
intent
.
setClass
(
this
,
ChatWebViewActivity
.
class
);
intent
.
setFlags
(
Intent
.
FLAG_ACTIVITY_NEW_TASK
);
intent
.
setFlags
(
Intent
.
FLAG_ACTIVITY_CLEAR_TOP
);
intent
.
putExtra
(
ABookCommConstants
.
KEY
.
SID
,
chatData
.
sid
);
intent
.
putExtra
(
ABookCommConstants
.
KEY
.
SID
,
chatData
.
sid
);
intent
.
putExtra
(
ABookCommConstants
.
KEY
.
ROOM_ID
,
chatData
.
roomId
);
intent
.
putExtra
(
ABookCommConstants
.
KEY
.
ROOM_ID
,
chatData
.
roomId
);
intent
.
putExtra
(
ABookCommConstants
.
KEY
.
ROOM_NAME
,
chatData
.
roomName
);
intent
.
putExtra
(
ABookCommConstants
.
KEY
.
ROOM_NAME
,
chatData
.
roomName
);
intent
.
putExtra
(
ABookCommConstants
.
KEY
.
ROOM_TYPE
,
chatData
.
roomType
);
intent
.
putExtra
(
ABookCommConstants
.
KEY
.
ROOM_TYPE
,
chatData
.
roomType
);
intent
.
putExtra
(
ABookCommConstants
.
KEY
.
LOGIN_ID
,
chatData
.
loginId
);
intent
.
putExtra
(
ABookCommConstants
.
KEY
.
LOGIN_ID
,
chatData
.
loginId
);
intent
.
putExtra
(
ABookCommConstants
.
KEY
.
SHOP_NAME
,
chatData
.
shopName
);
intent
.
putExtra
(
ABookCommConstants
.
KEY
.
SHOP_NAME
,
chatData
.
shopName
);
intent
.
putExtra
(
ABookCommConstants
.
KEY
.
COLLABORATION_TYPE
,
chatData
.
getStrCollaborationType
());
intent
.
putExtra
(
AppDefType
.
ChatPushMessageKey
.
baseActivityName
,
baseActivityName
);
intent
.
putExtra
(
AppDefType
.
ChatPushMessageKey
.
baseActivityName
,
baseActivityName
);
activityHandlingHelper
.
getCurrentActivity
().
startActivity
(
intent
);
getApplication
().
startActivity
(
intent
);
collaborationType
=
Integer
.
toString
(
0
);
collaborationType
=
Integer
.
toString
(
0
);
startPIP
=
false
;
startPIP
=
false
;
finish
();
}
}
}
}
...
@@ -1353,6 +1351,8 @@ public class ChatWebViewActivity extends CommunicationWebViewActivity implements
...
@@ -1353,6 +1351,8 @@ public class ChatWebViewActivity extends CommunicationWebViewActivity implements
public
void
exitMeetingRoom
()
{
public
void
exitMeetingRoom
()
{
exitAndDeleteMeetingRoom
();
exitAndDeleteMeetingRoom
();
finishPIPMode
();
finishPIPMode
();
//関連資料画面閉じる
ActivityHandlingHelper
.
getInstance
().
finishCollaborationOperationRelatedContentActivity
();
}
}
public
void
finishPIP
()
{
public
void
finishPIP
()
{
...
@@ -1389,4 +1389,17 @@ public class ChatWebViewActivity extends CommunicationWebViewActivity implements
...
@@ -1389,4 +1389,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
();
}
}
}
ABVJE_UI_Android/src/jp/agentec/abook/abv/ui/home/helper/ActivityHandlingHelper.java
View file @
bf210b59
...
@@ -851,6 +851,20 @@ public class ActivityHandlingHelper extends ABookHelper implements RemoteObserve
...
@@ -851,6 +851,20 @@ public class ActivityHandlingHelper extends ABookHelper implements RemoteObserve
}
}
}
}
/**
* 文書協業用の関連資料画面を閉じる
*/
public
void
finishCollaborationOperationRelatedContentActivity
()
{
if
(!
currentActivityStack
.
isEmpty
())
{
for
(
ABVAuthenticatedActivity
activity
:
currentActivityStack
)
{
if
(
activity
instanceof
OperationRelatedContentActivity
)
{
activity
.
finish
();
break
;
}
}
}
}
public
Stack
<
ABVAuthenticatedActivity
>
getCurrentActivityStack
()
{
public
Stack
<
ABVAuthenticatedActivity
>
getCurrentActivityStack
()
{
return
currentActivityStack
;
return
currentActivityStack
;
}
}
...
@@ -1871,6 +1885,20 @@ public class ActivityHandlingHelper extends ABookHelper implements RemoteObserve
...
@@ -1871,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 設定画面へ遷移前の画面
*/
*/
...
...
ABVJE_UI_Android/src/jp/agentec/abook/abv/ui/viewer/activity/ContentViewActivity.java
View file @
bf210b59
...
@@ -2139,6 +2139,8 @@ public class ContentViewActivity extends ABVContentViewActivity {
...
@@ -2139,6 +2139,8 @@ public class ContentViewActivity extends ABVContentViewActivity {
ContentLogUtil
.
getInstance
().
contentPageMove
(
contentId
,
readingLogId
,
currentPageNumber
,
nextPageNumber
);
ContentLogUtil
.
getInstance
().
contentPageMove
(
contentId
,
readingLogId
,
currentPageNumber
,
nextPageNumber
);
if
(
contentsBgmFlg
&&
!
StringUtil
.
isNullOrEmpty
(
contentsBgmFilePath
)
&&
!
contentBGMPlayer
.
isPlaying
())
{
if
(
contentsBgmFlg
&&
!
StringUtil
.
isNullOrEmpty
(
contentsBgmFilePath
)
&&
!
contentBGMPlayer
.
isPlaying
())
{
//文書協業接続中にはコンテンツBGM再生しない
if
(!
isCollaboration
)
{
//contentsBgmFilePath
//contentsBgmFilePath
contentBGMPlayer
=
new
ABVMediaPlayer
(
true
);
contentBGMPlayer
=
new
ABVMediaPlayer
(
true
);
try
{
try
{
...
@@ -2147,10 +2149,11 @@ public class ContentViewActivity extends ABVContentViewActivity {
...
@@ -2147,10 +2149,11 @@ public class ContentViewActivity extends ABVContentViewActivity {
contentBGMPlayer
.
prepare
();
contentBGMPlayer
.
prepare
();
contentBGMPlayer
.
start
();
contentBGMPlayer
.
start
();
}
catch
(
IOException
e
)
{
}
catch
(
IOException
e
)
{
Logger
.
e
(
TAG
,
"Can't play content BGM"
,
e
);
Logger
.
e
(
TAG
,
"Can't play content BGM"
,
e
);
ABVToastUtil
.
showMakeText
(
getApplicationContext
(),
R
.
string
.
ERROR
,
Toast
.
LENGTH_SHORT
);
ABVToastUtil
.
showMakeText
(
getApplicationContext
(),
R
.
string
.
ERROR
,
Toast
.
LENGTH_SHORT
);
}
}
}
}
}
//リモート機能
//リモート機能
if
(
meetingManager
.
isSendable
())
{
// TODO: later 止まったタイミングで送るように要修正
if
(
meetingManager
.
isSendable
())
{
// TODO: later 止まったタイミングで送るように要修正
...
@@ -2638,7 +2641,13 @@ public class ContentViewActivity extends ABVContentViewActivity {
...
@@ -2638,7 +2641,13 @@ public class ContentViewActivity extends ABVContentViewActivity {
private
void
handleAction
(
ActionButton
actionButton
,
PageObjectJSON
pageObject
)
{
private
void
handleAction
(
ActionButton
actionButton
,
PageObjectJSON
pageObject
)
{
ActionInfoJSON
actionInfoJSON
=
pageObject
.
getActionInfo
();
ActionInfoJSON
actionInfoJSON
=
pageObject
.
getActionInfo
();
int
pageNumber
=
pageObject
.
getPageNumber
();
int
pageNumber
=
pageObject
.
getPageNumber
();
//文書協業接続時、機能制限する(動作再生、音声再生)
if
(
actionInfoJSON
.
getActionType
()
==
ActionInfoJSON
.
VIDEO_ACTION
||
actionInfoJSON
.
getActionType
()
==
ActionInfoJSON
.
MUSIC_ACTION
)
{
if
(
isCollaborationConnected
())
{
return
;
}
}
if
(
meetingManager
.
isSendable
()
if
(
meetingManager
.
isSendable
()
&&
actionInfoJSON
.
getActionType
()
!=
ActionInfoJSON
.
EMAIL_ACTION
&&
actionInfoJSON
.
getActionType
()
!=
ActionInfoJSON
.
EMAIL_ACTION
&&
actionInfoJSON
.
getActionType
()
!=
ActionInfoJSON
.
CONTENTLINK_ACTION
)
{
// リモート送信(メール・コンテンツリンクを除く)
&&
actionInfoJSON
.
getActionType
()
!=
ActionInfoJSON
.
CONTENTLINK_ACTION
)
{
// リモート送信(メール・コンテンツリンクを除く)
...
@@ -2867,6 +2876,8 @@ public class ContentViewActivity extends ABVContentViewActivity {
...
@@ -2867,6 +2876,8 @@ public class ContentViewActivity extends ABVContentViewActivity {
}
}
// BGM
// BGM
if
(
contentsBgmFlg
&&
!
StringUtil
.
isNullOrEmpty
(
contentsBgmFilePath
)
&&
!
contentBGMPlayer
.
isPlaying
())
{
if
(
contentsBgmFlg
&&
!
StringUtil
.
isNullOrEmpty
(
contentsBgmFilePath
)
&&
!
contentBGMPlayer
.
isPlaying
())
{
//文書協業接続中にはコンテンツBGM再生しない
if
(!
isCollaboration
)
{
//contentsBgmFilePath
//contentsBgmFilePath
contentBGMPlayer
=
new
ABVMediaPlayer
(
true
);
contentBGMPlayer
=
new
ABVMediaPlayer
(
true
);
try
{
try
{
...
@@ -2879,6 +2890,7 @@ public class ContentViewActivity extends ABVContentViewActivity {
...
@@ -2879,6 +2890,7 @@ public class ContentViewActivity extends ABVContentViewActivity {
ABVToastUtil
.
showMakeText
(
getApplicationContext
(),
R
.
string
.
ERROR
,
Toast
.
LENGTH_SHORT
);
ABVToastUtil
.
showMakeText
(
getApplicationContext
(),
R
.
string
.
ERROR
,
Toast
.
LENGTH_SHORT
);
}
}
}
}
}
playPageBGMSound
(
jumpPage
);
playPageBGMSound
(
jumpPage
);
//탭사운드 플레이 Bug
//탭사운드 플레이 Bug
...
@@ -3178,6 +3190,10 @@ public class ContentViewActivity extends ABVContentViewActivity {
...
@@ -3178,6 +3190,10 @@ public class ContentViewActivity extends ABVContentViewActivity {
imgButton
.
setOnClickListener
(
new
View
.
OnClickListener
()
{
imgButton
.
setOnClickListener
(
new
View
.
OnClickListener
()
{
@Override
@Override
public
void
onClick
(
View
view
)
{
public
void
onClick
(
View
view
)
{
//文書協業接続中には差し替え動作機能制限
if
(
isCollaborationConnected
())
{
return
;
}
if
(
meetingManager
.
isSendable
())
{
if
(
meetingManager
.
isSendable
())
{
meetingManager
.
sendWs
(
MeetingManager
.
CMD_ACTION
,
getContentId
(),
pageNumber
,
pageObjectId
,
null
);
meetingManager
.
sendWs
(
MeetingManager
.
CMD_ACTION
,
getContentId
(),
pageNumber
,
pageObjectId
,
null
);
}
}
...
@@ -3292,6 +3308,10 @@ public class ContentViewActivity extends ABVContentViewActivity {
...
@@ -3292,6 +3308,10 @@ public class ContentViewActivity extends ABVContentViewActivity {
}
}
private
void
videoOnClick
(
PageObjectJSON
pageObject
,
int
pageidx
)
{
private
void
videoOnClick
(
PageObjectJSON
pageObject
,
int
pageidx
)
{
//文書協業接続中には全画面動画制御
if
(
isCollaborationConnected
())
{
return
;
}
if
(
mPageScrollView
.
isZooming
()
==
false
)
{
if
(
mPageScrollView
.
isZooming
()
==
false
)
{
//リモート機能
//リモート機能
if
(
meetingManager
.
isSendable
())
{
if
(
meetingManager
.
isSendable
())
{
...
@@ -3483,6 +3503,10 @@ public class ContentViewActivity extends ABVContentViewActivity {
...
@@ -3483,6 +3503,10 @@ public class ContentViewActivity extends ABVContentViewActivity {
clickableArea
.
setOnClickListener
(
new
View
.
OnClickListener
()
{
clickableArea
.
setOnClickListener
(
new
View
.
OnClickListener
()
{
@Override
@Override
public
void
onClick
(
View
view
)
{
public
void
onClick
(
View
view
)
{
//文書協業接続時には音声アクション制限
if
(
isCollaborationConnected
())
{
return
;
}
if
(
meetingManager
.
isSendable
())
{
if
(
meetingManager
.
isSendable
())
{
meetingManager
.
sendWs
(
MeetingManager
.
CMD_ACTION
,
contentId
,
pageObject
.
getPageNumber
(),
pageObject
.
getActionInfo
().
getObjectId
(),
null
);
meetingManager
.
sendWs
(
MeetingManager
.
CMD_ACTION
,
contentId
,
pageObject
.
getPageNumber
(),
pageObject
.
getActionInfo
().
getObjectId
(),
null
);
}
}
...
@@ -3509,6 +3533,10 @@ public class ContentViewActivity extends ABVContentViewActivity {
...
@@ -3509,6 +3533,10 @@ public class ContentViewActivity extends ABVContentViewActivity {
playIcon
.
setOnClickListener
(
new
View
.
OnClickListener
()
{
playIcon
.
setOnClickListener
(
new
View
.
OnClickListener
()
{
@Override
@Override
public
void
onClick
(
View
view
)
{
public
void
onClick
(
View
view
)
{
//文書協業接続時には音声アクション制限
if
(
isCollaborationConnected
())
{
return
;
}
if
(
meetingManager
.
isSendable
())
{
if
(
meetingManager
.
isSendable
())
{
meetingManager
.
sendWs
(
MeetingManager
.
CMD_ACTION
,
contentId
,
pageObject
.
getPageNumber
(),
pageObject
.
getActionInfo
().
getObjectId
(),
null
);
meetingManager
.
sendWs
(
MeetingManager
.
CMD_ACTION
,
contentId
,
pageObject
.
getPageNumber
(),
pageObject
.
getActionInfo
().
getObjectId
(),
null
);
}
}
...
@@ -3526,6 +3554,10 @@ public class ContentViewActivity extends ABVContentViewActivity {
...
@@ -3526,6 +3554,10 @@ public class ContentViewActivity extends ABVContentViewActivity {
if
(
contentBGMPlayer
!=
null
)
{
if
(
contentBGMPlayer
!=
null
)
{
return
;
return
;
}
}
//文書協業接続中にはコンテンツBGM再生しない
if
(
isCollaboration
)
{
return
;
}
contentBGMPlayer
=
new
ABVMediaPlayer
(
true
);
contentBGMPlayer
=
new
ABVMediaPlayer
(
true
);
try
{
try
{
Logger
.
v
(
TAG
,
"[addMusic]:MediaPlayer Content BGM"
);
Logger
.
v
(
TAG
,
"[addMusic]:MediaPlayer Content BGM"
);
...
@@ -3607,6 +3639,8 @@ public class ContentViewActivity extends ABVContentViewActivity {
...
@@ -3607,6 +3639,8 @@ public class ContentViewActivity extends ABVContentViewActivity {
String
soundFilePath
=
mContentDir
+
"/"
+
contentsBGMPageObject
.
getActionInfo
().
getMusicFileName
();
String
soundFilePath
=
mContentDir
+
"/"
+
contentsBGMPageObject
.
getActionInfo
().
getMusicFileName
();
if
(
contentsBGMPageObject
.
getActionInfo
().
getPlayType
()
==
1
)
{
if
(
contentsBGMPageObject
.
getActionInfo
().
getPlayType
()
==
1
)
{
if
(
contentBGMPlayer
==
null
)
{
if
(
contentBGMPlayer
==
null
)
{
//文書協業接続中にはコンテンツBGM再生しない
if
(!
isCollaboration
)
{
contentBGMPlayer
=
new
ABVMediaPlayer
(
true
);
contentBGMPlayer
=
new
ABVMediaPlayer
(
true
);
try
{
try
{
if
(
pageBgmFlg
)
{
if
(
pageBgmFlg
)
{
...
@@ -3623,6 +3657,8 @@ public class ContentViewActivity extends ABVContentViewActivity {
...
@@ -3623,6 +3657,8 @@ public class ContentViewActivity extends ABVContentViewActivity {
Logger
.
e
(
TAG
,
"Can't play content BGM"
,
e
);
Logger
.
e
(
TAG
,
"Can't play content BGM"
,
e
);
ABVToastUtil
.
showMakeText
(
getApplicationContext
(),
R
.
string
.
ERROR
,
Toast
.
LENGTH_SHORT
);
ABVToastUtil
.
showMakeText
(
getApplicationContext
(),
R
.
string
.
ERROR
,
Toast
.
LENGTH_SHORT
);
}
}
}
}
else
{
}
else
{
return
;
return
;
}
}
...
@@ -3703,6 +3739,10 @@ public class ContentViewActivity extends ABVContentViewActivity {
...
@@ -3703,6 +3739,10 @@ public class ContentViewActivity extends ABVContentViewActivity {
}
}
private
void
playPageBGMSound
(
int
pageNumber
)
{
private
void
playPageBGMSound
(
int
pageNumber
)
{
//文書協業接続中にはページBGM再生しない
if
(
isCollaboration
)
{
return
;
}
String
bgmFilePath
=
pageBGMPathList
.
get
(
pageNumber
);
String
bgmFilePath
=
pageBGMPathList
.
get
(
pageNumber
);
//프리뷰 모드일때 사운드 계속 재생
//프리뷰 모드일때 사운드 계속 재생
...
@@ -5554,5 +5594,15 @@ public class ContentViewActivity extends ABVContentViewActivity {
...
@@ -5554,5 +5594,15 @@ public class ContentViewActivity extends ABVContentViewActivity {
operationTaskLayout
.
setIconStatus
(
taskKey
,
false
);
operationTaskLayout
.
setIconStatus
(
taskKey
,
false
);
}
}
/**
* 文書協業接続中の値を返して、接続中にはエラーダイアログ表示
* @return YES:接続中、NO:非接続
* */
public
boolean
isCollaborationConnected
()
{
if
(
isCollaboration
)
{
showSimpleAlertDialog
(
R
.
string
.
msg_fail_collaboration_not_action_allow
);
}
return
isCollaboration
;
}
}
}
ABVJE_UI_Android/src/jp/agentec/abook/abv/ui/viewer/view/action/VideoMountAction.java
View file @
bf210b59
...
@@ -345,6 +345,11 @@ public class VideoMountAction {
...
@@ -345,6 +345,11 @@ public class VideoMountAction {
}
}
private
void
videoOnClick
(
RelativeLayout
contentPageView
)
{
private
void
videoOnClick
(
RelativeLayout
contentPageView
)
{
//文書協業接続中、埋め込み動画制限
if
(
mActivity
.
isCollaborationConnected
())
{
return
;
}
if
(((
ZoomRelativeLayout
)
contentPageView
).
isZooming
()
==
false
)
{
if
(((
ZoomRelativeLayout
)
contentPageView
).
isZooming
()
==
false
)
{
//動画の表示・再生
//動画の表示・再生
if
(
meetingManager
.
isSendable
())
{
if
(
meetingManager
.
isSendable
())
{
...
...
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