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
b4611929
Commit
b4611929
authored
Jun 09, 2021
by
Lee Munkyeong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
協業中のフラグ修正。
parent
763dba65
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
28 additions
and
16 deletions
+28
-16
ABVJE_BL/src/jp/agentec/abook/abv/bl/websocket/MeetingManager.java
+10
-1
ABVJE_UI_Android/src/jp/agentec/abook/abv/ui/common/activity/ABVContentViewActivity.java
+2
-6
ABVJE_UI_Android/src/jp/agentec/abook/abv/ui/home/activity/ChatWebViewActivity.java
+3
-0
ABVJE_UI_Android/src/jp/agentec/abook/abv/ui/home/helper/ActivityHandlingHelper.java
+3
-5
ABVJE_UI_Android/src/jp/agentec/abook/abv/ui/viewer/activity/ContentViewActivity.java
+10
-4
No files found.
ABVJE_BL/src/jp/agentec/abook/abv/bl/websocket/MeetingManager.java
View file @
b4611929
...
...
@@ -138,6 +138,7 @@ public class MeetingManager extends Observable {
private
int
status
=
STATUS_READY
;
// ws通信ステータス
private
boolean
isOwner
;
// オーナーか否か
private
boolean
paused
;
// 一時停止状態
private
boolean
isCollaboration
=
false
;
private
ArrayList
<
MeetingDto
>
meetingList
;
private
BlockingQueue
<
Object
>
messageQueue
;
...
...
@@ -337,7 +338,7 @@ public class MeetingManager extends Observable {
joinedMeetingId
=
NO_MEETING_ID
;
status
=
STATUS_READY
;
paused
=
false
;
isCollaboration
=
false
;
if
(
messageHandlingThread
!=
null
)
{
messageHandlingThread
.
terminate
();
messageHandlingThread
=
null
;
...
...
@@ -794,6 +795,14 @@ public class MeetingManager extends Observable {
}
}
public
void
setCollaboration
(
boolean
isCollaboration
)
{
this
.
isCollaboration
=
isCollaboration
;
}
public
boolean
isCollaboration
()
{
return
isCollaboration
;
}
public
String
getJoinedMeetingPassword
()
{
return
joinedMeetingPassword
;
}
...
...
ABVJE_UI_Android/src/jp/agentec/abook/abv/ui/common/activity/ABVContentViewActivity.java
View file @
b4611929
...
...
@@ -154,11 +154,6 @@ public abstract class ABVContentViewActivity extends ABVAuthenticatedActivity {
protected
void
onCreate
(
Bundle
savedInstanceState
)
{
super
.
onCreate
(
savedInstanceState
);
ChatWebViewActivity
chatWebViewActivity
=
ActivityHandlingHelper
.
getInstance
().
getActivity
(
ChatWebViewActivity
.
class
);
if
(
chatWebViewActivity
!=
null
&&
chatWebViewActivity
.
isInPictureInPictureMode
())
{
isCollaboration
=
true
;
}
Intent
intent
=
getIntent
();
contentId
=
intent
.
getLongExtra
(
ABookKeys
.
CONTENT_ID
,
0
);
contentType
=
intent
.
getStringExtra
(
ABookKeys
.
CONTENT_TYPE
);
...
...
@@ -203,7 +198,8 @@ public abstract class ABVContentViewActivity extends ABVAuthenticatedActivity {
// 遠隔連動
meetingManager
=
MeetingManager
.
getInstance
();
isCollaboration
=
meetingManager
.
isCollaboration
();
mContentDir
=
getIntent
().
getStringExtra
(
FILEPATH
);
// Activity登録
...
...
ABVJE_UI_Android/src/jp/agentec/abook/abv/ui/home/activity/ChatWebViewActivity.java
View file @
b4611929
...
...
@@ -1536,6 +1536,7 @@ public class ChatWebViewActivity extends CommunicationWebViewActivity {
}
meetingId
=
meetingManager
.
createMeeting
(
mSkey
,
"Collaboration_"
+
roomId
,
roomId
.
toString
());
meetingManager
.
join
(
meetingId
,
mSkey
,
roomId
.
toString
(),
true
);
meetingManager
.
setCollaboration
(
true
);
}
catch
(
Exception
e
)
{
mChatWebView
.
loadUrl
(
"javascript:alert('"
+
"会議室サーバに接続できませんでした。"
+
"');"
);
}
...
...
@@ -1553,6 +1554,7 @@ public class ChatWebViewActivity extends CommunicationWebViewActivity {
connectMeetingServer
();
List
<
MeetingDto
>
meetingList
=
meetingManager
.
getMeetingList
(
mSkey
);
meetingManager
.
join
(
joinMeetingId
,
mSkey
,
roomId
.
toString
(),
false
);
meetingManager
.
setCollaboration
(
true
);
}
catch
(
Exception
e
)
{
mChatWebView
.
loadUrl
(
"javascript:alert('"
+
"会議室サーバに接続できませんでした。"
+
"');"
);
}
...
...
@@ -1568,6 +1570,7 @@ public class ChatWebViewActivity extends CommunicationWebViewActivity {
connectMeetingServer
();
List
<
MeetingDto
>
meetingList
=
meetingManager
.
getMeetingList
(
mSkey
);
meetingManager
.
join
(
joinMeetingId
,
mSkey
,
roomId
.
toString
(),
false
);
meetingManager
.
setCollaboration
(
true
);
}
catch
(
Exception
e
)
{
mChatWebView
.
loadUrl
(
"javascript:alert('"
+
"会議室サーバに接続できませんでした。"
+
"');"
);
}
...
...
ABVJE_UI_Android/src/jp/agentec/abook/abv/ui/home/helper/ActivityHandlingHelper.java
View file @
b4611929
...
...
@@ -120,7 +120,7 @@ public class ActivityHandlingHelper extends ABookHelper implements RemoteObserve
private
long
lastDisconnect
;
private
static
Dialog
meetingAlertDialog
;
private
ABVUIActivity
previousOfSettingActivity
;
private
boolean
isCollaboration
;
private
boolean
isCollaboration
=
false
;
// Chat
private
ParentWebViewActivity
previousOfSettingActivity2
;
...
...
@@ -886,10 +886,8 @@ public class ActivityHandlingHelper extends ABookHelper implements RemoteObserve
final
String
cmd
=
json
.
getString
(
MeetingManager
.
CMD
);
final
long
contentId
=
JsonUtil
.
getLong
(
json
,
MeetingManager
.
CONTENTID
);
final
int
pageNumber
=
JsonUtil
.
getInt
(
json
,
MeetingManager
.
PAGE_NUMBER
);
isCollaboration
=
false
;
ChatWebViewActivity
chatWebViewActivity
=
getActivity
(
ChatWebViewActivity
.
class
);
if
(
chatWebViewActivity
!=
null
&&
chatWebViewActivity
.
isInPictureInPictureMode
())
{
isCollaboration
=
true
;
if
(
meetingManager
!=
null
)
{
isCollaboration
=
meetingManager
.
isCollaboration
();
}
if
(
cmd
.
equals
(
MeetingManager
.
CMD_MEETINGINFO
)
&&
!
isCollaboration
)
{
// 入室結果
showToast
(
mContext
.
getString
(
meetingManager
.
isOwner
()
?
R
.
string
.
msg_enter_as_publisher
:
R
.
string
.
msg_enter_as_subscriber
));
...
...
ABVJE_UI_Android/src/jp/agentec/abook/abv/ui/viewer/activity/ContentViewActivity.java
View file @
b4611929
...
...
@@ -712,8 +712,12 @@ public class ContentViewActivity extends ABVContentViewActivity {
}
if
(
isCollaboration
)
{
mPageNumberLayout
.
setVisibility
(
View
.
GONE
);
mSeekBarLayout
.
setVisibility
(
View
.
GONE
);
if
(
mPageNumberLayout
!=
null
)
{
mPageNumberLayout
.
setVisibility
(
View
.
GONE
);
}
if
(
mSeekBarLayout
!=
null
)
{
mSeekBarLayout
.
setVisibility
(
View
.
GONE
);
}
}
}
...
...
@@ -1789,9 +1793,11 @@ public class ContentViewActivity extends ABVContentViewActivity {
}
if
(
isCollaboration
)
{
mPageNumberLayout
.
setVisibility
(
View
.
GONE
);
mSeekBarLayout
.
setVisibility
(
View
.
GONE
);
bookmark
.
setVisibility
(
View
.
GONE
);
if
(
hasMultiPages
)
{
mPageNumberLayout
.
setVisibility
(
View
.
GONE
);
mSeekBarLayout
.
setVisibility
(
View
.
GONE
);
}
}
}
else
{
...
...
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