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
85a0b2c6
Commit
85a0b2c6
authored
Sep 12, 2021
by
onuma
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'communication/develop_onuma' into 'communication/develop'
onStop()で実行していた処理を削除した。 See merge request
!228
parents
2e009ca6
b10ba4d9
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
20 deletions
+5
-20
ABVJE_UI_Android/src/jp/agentec/abook/abv/ui/home/activity/ChatWebViewActivity.java
+5
-20
No files found.
ABVJE_UI_Android/src/jp/agentec/abook/abv/ui/home/activity/ChatWebViewActivity.java
View file @
85a0b2c6
...
@@ -112,8 +112,7 @@ public class ChatWebViewActivity extends CommunicationWebViewActivity implements
...
@@ -112,8 +112,7 @@ public class ChatWebViewActivity extends CommunicationWebViewActivity implements
private
String
selectedUserIdList
;
private
String
selectedUserIdList
;
private
String
mSkey
;
private
String
mSkey
;
private
boolean
startPIP
=
false
;
// PIPモードを開始していたらtrue;
private
boolean
startPIP
=
false
;
// PIPモードを開始していたらtrue;
private
boolean
needFinishOnStop
=
false
;
// ×ボタンでPIP閉じた時用
private
boolean
isActivityStop
=
false
;
// onResume で tru onStop で false
private
boolean
doneOnStopEvent
=
false
;
private
String
collaborationType
=
null
;
private
String
collaborationType
=
null
;
private
String
meetingId
=
null
;
private
String
meetingId
=
null
;
...
@@ -902,7 +901,7 @@ public class ChatWebViewActivity extends CommunicationWebViewActivity implements
...
@@ -902,7 +901,7 @@ public class ChatWebViewActivity extends CommunicationWebViewActivity implements
return
;
return
;
}
}
if
(
doneOnStopEvent
)
{
if
(
isActivityStop
)
{
mChatWebView
.
exitCollaboration
();
mChatWebView
.
exitCollaboration
();
}
}
mChatWebView
.
addPIPIndicator
();
mChatWebView
.
addPIPIndicator
();
...
@@ -1014,7 +1013,7 @@ public class ChatWebViewActivity extends CommunicationWebViewActivity implements
...
@@ -1014,7 +1013,7 @@ public class ChatWebViewActivity extends CommunicationWebViewActivity implements
@Override
@Override
protected
void
onResume
()
{
protected
void
onResume
()
{
doneOnStopEvent
=
false
;
// activity動いている
isActivityStop
=
false
;
// activity動いている
super
.
onResume
();
super
.
onResume
();
if
(
mChatWebView
.
getUrl
()
!=
null
&&
mChatWebView
.
getUrl
().
equals
(
ABookCommConstants
.
CHAT_ROOM_PAGE_URL
))
{
if
(
mChatWebView
.
getUrl
()
!=
null
&&
mChatWebView
.
getUrl
().
equals
(
ABookCommConstants
.
CHAT_ROOM_PAGE_URL
))
{
mChatWebView
.
socketCheck
();
mChatWebView
.
socketCheck
();
...
@@ -1024,21 +1023,7 @@ public class ChatWebViewActivity extends CommunicationWebViewActivity implements
...
@@ -1024,21 +1023,7 @@ public class ChatWebViewActivity extends CommunicationWebViewActivity implements
@Override
@Override
protected
void
onStop
()
{
protected
void
onStop
()
{
super
.
onStop
();
super
.
onStop
();
isActivityStop
=
true
;
// activity 停止
doneOnStopEvent
=
true
;
// activity 停止
if
(
needFinishOnStop
)
{
try
{
chatData
.
finishCollaboration
();
}
catch
(
NetworkDisconnectedException
e
)
{
e
.
printStackTrace
();
}
catch
(
AcmsException
e
)
{
e
.
printStackTrace
();
}
// PIPモードは、状態変化のイベントがonStopくらいしかない。なので、PIPの時は、ここでfinish()する
finish
();
needFinishOnStop
=
false
;
}
}
}
@Override
@Override
...
@@ -1049,6 +1034,7 @@ public class ChatWebViewActivity extends CommunicationWebViewActivity implements
...
@@ -1049,6 +1034,7 @@ public class ChatWebViewActivity extends CommunicationWebViewActivity implements
unregisterReceiver
(
receiver
);
unregisterReceiver
(
receiver
);
receiver
=
null
;
receiver
=
null
;
}
}
finishBeforeContentListActivity
();
}
}
@Override
@Override
...
@@ -1340,7 +1326,6 @@ public class ChatWebViewActivity extends CommunicationWebViewActivity implements
...
@@ -1340,7 +1326,6 @@ public class ChatWebViewActivity extends CommunicationWebViewActivity implements
public
void
startPIPMode
()
{
public
void
startPIPMode
()
{
PictureInPictureParams
.
Builder
mPipBuilder
=
new
PictureInPictureParams
.
Builder
();
PictureInPictureParams
.
Builder
mPipBuilder
=
new
PictureInPictureParams
.
Builder
();
enterPictureInPictureMode
(
mPipBuilder
.
build
());
enterPictureInPictureMode
(
mPipBuilder
.
build
());
needFinishOnStop
=
true
;
startPIP
=
true
;
startPIP
=
true
;
}
}
...
...
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