Commit 15ff14d4 by onuma

#44357 コミュニケーションダイアログが、ボタン2回連続タップすると消えなくなる

parent 4790e604
...@@ -818,6 +818,10 @@ public abstract class ABVAuthenticatedActivity extends ABVActivity implements Co ...@@ -818,6 +818,10 @@ public abstract class ABVAuthenticatedActivity extends ABVActivity implements Co
* コミュニケーションメニューダイアログ * コミュニケーションメニューダイアログ
*/ */
public void showCommunicationMenuDialog() { public void showCommunicationMenuDialog() {
if (mCommunicationMenuDialog != null) {
// すでに作成されている場合はなにもしない
return;
}
mCommunicationMenuDialog = new Dialog(this); mCommunicationMenuDialog = new Dialog(this);
mCommunicationMenuDialog.requestWindowFeature(Window.FEATURE_NO_TITLE); mCommunicationMenuDialog.requestWindowFeature(Window.FEATURE_NO_TITLE);
mCommunicationMenuDialog.setCanceledOnTouchOutside(false); mCommunicationMenuDialog.setCanceledOnTouchOutside(false);
...@@ -846,7 +850,7 @@ public abstract class ABVAuthenticatedActivity extends ABVActivity implements Co ...@@ -846,7 +850,7 @@ public abstract class ABVAuthenticatedActivity extends ABVActivity implements Co
@Override @Override
public void onClick(View view) { public void onClick(View view) {
ActivityHandlingHelper.getInstance().startMeetingActivity(); ActivityHandlingHelper.getInstance().startMeetingActivity();
mCommunicationMenuDialog.dismiss(); finishCommunicationMenuDialog();
} }
}); });
...@@ -855,7 +859,7 @@ public abstract class ABVAuthenticatedActivity extends ABVActivity implements Co ...@@ -855,7 +859,7 @@ public abstract class ABVAuthenticatedActivity extends ABVActivity implements Co
@Override @Override
public void onClick(View view) { public void onClick(View view) {
showOperationSelectDialog(); showOperationSelectDialog();
mCommunicationMenuDialog.dismiss(); finishCommunicationMenuDialog();
} }
}); });
...@@ -864,7 +868,7 @@ public abstract class ABVAuthenticatedActivity extends ABVActivity implements Co ...@@ -864,7 +868,7 @@ public abstract class ABVAuthenticatedActivity extends ABVActivity implements Co
@Override @Override
public void onClick(View view) { public void onClick(View view) {
showPushMessageListDialog(); showPushMessageListDialog();
mCommunicationMenuDialog.dismiss(); finishCommunicationMenuDialog();
} }
}); });
...@@ -883,7 +887,7 @@ public abstract class ABVAuthenticatedActivity extends ABVActivity implements Co ...@@ -883,7 +887,7 @@ public abstract class ABVAuthenticatedActivity extends ABVActivity implements Co
targetActivityName = OperationRelatedContentActivity.class.getName(); targetActivityName = OperationRelatedContentActivity.class.getName();
} }
ActivityHandlingHelper.getInstance().startChatWebViewActivity(new Long(0),"", ChatWebViewActivity.class.getName(), targetActivityName); ActivityHandlingHelper.getInstance().startChatWebViewActivity(new Long(0),"", ChatWebViewActivity.class.getName(), targetActivityName);
mCommunicationMenuDialog.dismiss(); finishCommunicationMenuDialog();
} }
}); });
} else { } else {
...@@ -893,13 +897,23 @@ public abstract class ABVAuthenticatedActivity extends ABVActivity implements Co ...@@ -893,13 +897,23 @@ public abstract class ABVAuthenticatedActivity extends ABVActivity implements Co
mCommunicationMenuDialog.findViewById(R.id.close_btn).setOnClickListener(new View.OnClickListener() { mCommunicationMenuDialog.findViewById(R.id.close_btn).setOnClickListener(new View.OnClickListener() {
@Override @Override
public void onClick(View v) { public void onClick(View v) {
mCommunicationMenuDialog.dismiss(); finishCommunicationMenuDialog();
} }
}); });
mCommunicationMenuDialog.show(); mCommunicationMenuDialog.show();
} }
/**
* コミュニケーションダイアログ閉じる
*/
private void finishCommunicationMenuDialog() {
if (mCommunicationMenuDialog != null) {
mCommunicationMenuDialog.dismiss();
mCommunicationMenuDialog = null;
}
}
private void showOperationSelectDialog() { private void showOperationSelectDialog() {
OperationDao operationDao = AbstractDao.getDao(OperationDao.class); OperationDao operationDao = AbstractDao.getDao(OperationDao.class);
mOperationSelectDialog = new Dialog(this); mOperationSelectDialog = new Dialog(this);
......
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