Commit 862d7cbe by onuma

#43368 文書協業中にプッシュメッセージからチャットルーム及びコラボレーション開始する時、チェックしてエラー表示する。

parent 58027879
...@@ -3,15 +3,10 @@ package jp.agentec.abook.abv.ui.common.activity; ...@@ -3,15 +3,10 @@ package jp.agentec.abook.abv.ui.common.activity;
import android.content.DialogInterface; import android.content.DialogInterface;
import android.os.Bundle; import android.os.Bundle;
import java.util.Date;
import java.util.List;
import jp.agentec.abook.abv.bl.common.log.Logger; import jp.agentec.abook.abv.bl.common.log.Logger;
import jp.agentec.abook.abv.bl.dto.OperationDto; import jp.agentec.abook.abv.bl.dto.OperationDto;
import jp.agentec.abook.abv.bl.dto.PushMessageDto;
import jp.agentec.abook.abv.bl.logic.AbstractLogic; import jp.agentec.abook.abv.bl.logic.AbstractLogic;
import jp.agentec.abook.abv.bl.logic.OperationLogic; import jp.agentec.abook.abv.bl.logic.OperationLogic;
import jp.agentec.abook.abv.bl.logic.PushMessageLogic;
import jp.agentec.abook.abv.bl.websocket.MeetingManager; import jp.agentec.abook.abv.bl.websocket.MeetingManager;
import jp.agentec.abook.abv.launcher.android.R; import jp.agentec.abook.abv.launcher.android.R;
import jp.agentec.abook.abv.ui.common.appinfo.AppDefType; import jp.agentec.abook.abv.ui.common.appinfo.AppDefType;
...@@ -22,8 +17,6 @@ import jp.agentec.abook.abv.ui.common.util.AlertDialogUtil; ...@@ -22,8 +17,6 @@ import jp.agentec.abook.abv.ui.common.util.AlertDialogUtil;
import jp.agentec.abook.abv.ui.common.util.PatternStringUtil; import jp.agentec.abook.abv.ui.common.util.PatternStringUtil;
import jp.agentec.abook.abv.ui.home.activity.OperationListActivity; import jp.agentec.abook.abv.ui.home.activity.OperationListActivity;
import jp.agentec.abook.abv.ui.home.helper.ActivityHandlingHelper; import jp.agentec.abook.abv.ui.home.helper.ActivityHandlingHelper;
import jp.agentec.adf.util.DateTimeFormat;
import jp.agentec.adf.util.DateTimeUtil;
import jp.agentec.adf.util.StringUtil; import jp.agentec.adf.util.StringUtil;
public class ShowPushMessageDailogActivity extends ABVUIActivity { public class ShowPushMessageDailogActivity extends ABVUIActivity {
...@@ -31,6 +24,7 @@ public class ShowPushMessageDailogActivity extends ABVUIActivity { ...@@ -31,6 +24,7 @@ public class ShowPushMessageDailogActivity extends ABVUIActivity {
OperationLogic mOperationLogic = AbstractLogic.getLogic(OperationLogic.class); OperationLogic mOperationLogic = AbstractLogic.getLogic(OperationLogic.class);
boolean isMeetingRoomConnected = false; boolean isMeetingRoomConnected = false;
boolean isCollabration = false;
@Override @Override
protected void onCreate(Bundle savedInstanceState) { protected void onCreate(Bundle savedInstanceState) {
...@@ -126,13 +120,13 @@ public class ShowPushMessageDailogActivity extends ABVUIActivity { ...@@ -126,13 +120,13 @@ public class ShowPushMessageDailogActivity extends ABVUIActivity {
@Override @Override
public void onClick(DialogInterface dialog, int which) { public void onClick(DialogInterface dialog, int which) {
isMeetingRoomConnected = MeetingManager.getInstance().isConnected(); isMeetingRoomConnected = MeetingManager.getInstance().isConnected();
// Check PushMessage isCollabration = MeetingManager.getInstance().isCollaboration();
Bundle extras = getIntent().getExtras(); Bundle extras = getIntent().getExtras();
if (extras != null && !isMeetingRoomConnected) { if (extras != null && !isMeetingRoomConnected) {
moveChatRoom(extras); moveChatRoom(extras);
finish(); finish();
} }
if (isMeetingRoomConnected) { if (isMeetingRoomConnected || isCollabration) {
showCannotMoveChatRoomDialog(); showCannotMoveChatRoomDialog();
} }
} }
...@@ -175,9 +169,16 @@ public class ShowPushMessageDailogActivity extends ABVUIActivity { ...@@ -175,9 +169,16 @@ public class ShowPushMessageDailogActivity extends ABVUIActivity {
handler.post(new Runnable() { handler.post(new Runnable() {
@Override @Override
public void run() { public void run() {
String dialogMessage = null;
if (isMeetingRoomConnected) {
dialogMessage = getRString(R.string.chat_open_fail_meeting_connected);
}
if (isCollabration) {
dialogMessage = getRString(R.string.chat_open_fail_collaborattion_connected);
}
  • コラボレーション時にもisMeetingRoomConnectedがtrueになるので、 isCollabrationからチェックを行ったほうがよいかと思われます。 if (isCollabration) {

    } else if (isMeetingRoomConnected) { }

  • 確認して修正します。

Please register or sign in to reply
final ABookAlertDialog alertDialog = AlertDialogUtil.createAlertDialog(ShowPushMessageDailogActivity.this, final ABookAlertDialog alertDialog = AlertDialogUtil.createAlertDialog(ShowPushMessageDailogActivity.this,
getRString(R.string.app_name), getRString(R.string.app_name),
getRString(R.string.chat_open_fail_meeting_connected)); dialogMessage);
alertDialog.setPositiveButton(R.string.ok, new DialogInterface.OnClickListener() { alertDialog.setPositiveButton(R.string.ok, new DialogInterface.OnClickListener() {
@Override @Override
public void onClick(DialogInterface dialog, int which) { public void onClick(DialogInterface dialog, int which) {
......
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