Commit 85a0b2c6 by onuma

Merge branch 'communication/develop_onuma' into 'communication/develop'

onStop()で実行していた処理を削除した。

See merge request !228
parents 2e009ca6 b10ba4d9
......@@ -112,8 +112,7 @@ public class ChatWebViewActivity extends CommunicationWebViewActivity implements
private String selectedUserIdList;
private String mSkey;
private boolean startPIP = false; // PIPモードを開始していたらtrue;
private boolean needFinishOnStop = false; // ×ボタンでPIP閉じた時用
private boolean doneOnStopEvent = false;
private boolean isActivityStop = false; // onResume で tru onStop で false
private String collaborationType = null;
private String meetingId = null;
......@@ -902,7 +901,7 @@ public class ChatWebViewActivity extends CommunicationWebViewActivity implements
return;
}
if (doneOnStopEvent) {
if (isActivityStop) {
mChatWebView.exitCollaboration();
}
mChatWebView.addPIPIndicator();
......@@ -1014,7 +1013,7 @@ public class ChatWebViewActivity extends CommunicationWebViewActivity implements
@Override
protected void onResume() {
doneOnStopEvent = false; // activity動いている
isActivityStop = false; // activity動いている
super.onResume();
if (mChatWebView.getUrl() != null && mChatWebView.getUrl().equals(ABookCommConstants.CHAT_ROOM_PAGE_URL)) {
mChatWebView.socketCheck();
......@@ -1024,21 +1023,7 @@ public class ChatWebViewActivity extends CommunicationWebViewActivity implements
@Override
protected void onStop() {
super.onStop();
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;
}
isActivityStop = true; // activity 停止
}
@Override
......@@ -1049,6 +1034,7 @@ public class ChatWebViewActivity extends CommunicationWebViewActivity implements
unregisterReceiver(receiver);
receiver = null;
}
finishBeforeContentListActivity();
}
@Override
......@@ -1340,7 +1326,6 @@ public class ChatWebViewActivity extends CommunicationWebViewActivity implements
public void startPIPMode() {
PictureInPictureParams.Builder mPipBuilder = new PictureInPictureParams.Builder();
enterPictureInPictureMode(mPipBuilder.build());
needFinishOnStop = true;
startPIP = true;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment