Skip to content

  • Projects
  • Groups
  • Snippets
  • Help
  • This project
    • Loading...
  • Sign in / Register
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
  • Activity
  • Graph
  • Charts
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
  • abook_android
  • abook_check
  • Merge Requests
  • !206

Merged
Opened Aug 26, 2021 by onuma@onuma 2 of 2 tasks completed2/2 tasks
  • Report abuse
Report abuse

プッシュメッセージからチャットと協業に遷移する時、iOSと同じ遷移にした.

LGTMの場合、チェックをしてください。

  • @kim-p
  • @kim_j
Edited Aug 26, 2021 by Kim Jinsung
  • Discussion 39
  • Commits 9
  • Changes 16
{{ resolvedDiscussionCount }}/{{ discussionCount }} {{ resolvedCountText }} resolved
  • Kim Peace @kim-p commented Aug 26, 2021
    Master

    必要のないコードはコメントアウトより、削除をお願いします。

    Edited Aug 26, 2021 by Kim Peace
    必要のないコードはコメントアウトより、削除をお願いします。
  • Kim Peace @kim-p

    assigned to @onuma

    Aug 26, 2021

    assigned to @onuma

    assigned to @onuma
    Toggle commit list
  • onuma @onuma

    added 1 commit

    • d901cb70 - プッシュメッセージからチャットと協業に遷移する時、iOSと同じ遷移にした。(3)

    Compare with previous version

    Aug 26, 2021

    added 1 commit

    • d901cb70 - プッシュメッセージからチャットと協業に遷移する時、iOSと同じ遷移にした。(3)

    Compare with previous version

    added 1 commit * d901cb70 - プッシュメッセージからチャットと協業に遷移する時、iOSと同じ遷移にした。(3) [Compare with previous version](https://gitlab.agentec.jp/abook_android/abook_check/merge_requests/206/diffs?diff_id=6952&start_sha=8651e4f7acbe6ba2c1dd3f454d94fcf7e5b1c227)
    Toggle commit list
  • onuma @onuma

    assigned to @kim-p

    Aug 26, 2021

    assigned to @kim-p

    assigned to @kim-p
    Toggle commit list
  • Kim Peace
    @kim-p started a discussion on the diff Aug 26, 2021
    Last updated by onuma Aug 26, 2021
    ABVJE_UI_Android/src/jp/agentec/abook/abv/cl/push/ABVFcmListenerService.java
    59 60 }
    60 61 }
    61 62
    62 /**
    • Kim Peace @kim-p commented Aug 26, 2021
      Master

      [nits] こちらは削除しない方があってないでしょうか。

      [nits] こちらは削除しない方があってないでしょうか。
    • onuma @onuma commented Aug 26, 2021
      Master

      diff で見るよ消えているように見えますが、ソースコードには、onMessageRecievedは消えておりませんので、安心してください。

      diff で見るよ消えているように見えますが、ソースコードには、onMessageRecievedは消えておりませんので、安心してください。
    Please register or sign in to reply
  • Kim Peace
    @kim-p started a discussion on an old version of the diff Aug 26, 2021
    Last updated by onuma Aug 26, 2021
    ABVJE_UI_Android/src/jp/agentec/abook/abv/cl/push/ABVFcmListenerService.java
    151 110 }
    152 111 }
    153 112
    113 /*
    • Kim Peace @kim-p commented Aug 26, 2021
      Master

      [nits] こちらからコメントアウトされています。確認お願いします。

      [nits] こちらからコメントアウトされています。確認お願いします。
    • onuma @onuma commented Aug 26, 2021
      Master

      削除します。

      削除します。
    • onuma @onuma

      changed this line in version 3 of the diff

      Aug 26, 2021

      changed this line in version 3 of the diff

      changed this line in [version 3 of the diff](https://gitlab.agentec.jp/abook_android/abook_check/merge_requests/206/diffs?diff_id=6958&start_sha=d901cb70e683978de023f7f06227b9951f0a1d88#35c43bdcbed56fa047ba60c2069e60fffdcbf6c4_113_113)
      Toggle commit list
    Please register or sign in to reply
  • Kim Peace
    @kim-p started a discussion on the diff Aug 26, 2021
    Last updated by onuma Aug 26, 2021
    ABVJE_UI_Android/src/jp/agentec/abook/abv/cl/push/ABVFcmListenerService.java
    172 127 pushMsgDialog.putExtra(AppDefType.ChatPushMessageKey.roomId, roomId);
    173 128 pushMsgDialog.putExtra(AppDefType.ChatPushMessageKey.roomName, roomName);
    174 pushMsgDialog.putExtra(AppDefType.ChatPushMessageKey.roomType, roomType);
    175 129 pushMsgDialog.putExtra(AppDefType.ChatPushMessageKey.pushSendLoginId, pushSendLoginId);
    176 130 pushMsgDialog.putExtra(AppDefType.ChatPushMessageKey.pushSendDate, pushSendDate);
    177 131 pushMsgDialog.putExtra(AppDefType.ChatPushMessageKey.collaborationType, collaborationType);
    178 pushMsgDialog.putExtra(AppDefType.ChatPushMessageKey.fromClassName, fromClassName);
    179
    132 pushMsgDialog.putExtra(AppDefType.ChatPushMessageKey.roomType, roomType);
    180 133 startActivity(pushMsgDialog);
    181 134 }
    182
    135 */
    183 136 /**
    184 137 * プッシュメッセージをダイアログ表示する
    185 * @param textMessage プッシュメッセージ
    • Kim Peace @kim-p commented Aug 26, 2021
      Master

      [nits] parametaが1個残っているのに表記がないです。確認お願いします。

      [nits] parametaが1個残っているのに表記がないです。確認お願いします。
    • onuma @onuma commented Aug 26, 2021
      Master

      説明を追加しました。

      説明を追加しました。
    Please register or sign in to reply
  • Kim Peace
    @kim-p started a discussion on an old version of the diff Aug 26, 2021
    Last updated by onuma Aug 26, 2021
    ABVJE_UI_Android/src/jp/agentec/abook/abv/cl/push/ABVFcmListenerService.java
    211 152 return;
    212 153 }
    213 154 }
    155
    214 156 String fromClassName = currentActivity.getClass().getName();
    215 157 if (currentActivity.getClass().equals(HTMLWebViewActivity.class) ||
    216 158 currentActivity.getClass().equals(ContentViewActivity.class) ||
    217 159 currentActivity.getClass().equals(OperationRelatedContentActivity.class) ||
    218 currentActivity.getClass().equals(OperationListActivity.class)
    160 currentActivity.getClass().equals(OperationListActivity.class) ||
    161 currentActivity.getClass().equals(ImageViewActivity.class) ||
    162 currentActivity.getClass().equals(VideoViewActivity.class)
    219 163 ){
    220 ((ABVAuthenticatedActivity)currentActivity).showChatRoomPopupMessage((Context)currentActivity, textMessage,
    221 data, operationID, roomID, roomName, roomType, pushSendLoginId, pushSendDate, collaborationType, fromClassName);
    164 // 呼び出し元のActivity名を保存しておく
    • Kim Peace @kim-p commented Aug 26, 2021
      Master

      [nits] Activityをどこに保存するのかコードでは見当たらないです。

      コードを読んだ限りだと、messagemapに格納し他の関数に渡しているように見えます。

      [nits] `Activity`をどこに保存するのかコードでは見当たらないです。 コードを読んだ限りだと、messagemapに格納し他の関数に渡しているように見えます。
    • onuma @onuma commented Aug 26, 2021
      Master

      コメントの間違いなので修正します。 「呼び出し元のActivityの名前をmessageMapに追加する」に変更します。

      Edited Aug 26, 2021 by onuma
      コメントの間違いなので修正します。 「呼び出し元のActivityの名前をmessageMapに追加する」に変更します。
    • onuma @onuma

      changed this line in version 3 of the diff

      Aug 26, 2021

      changed this line in version 3 of the diff

      changed this line in [version 3 of the diff](https://gitlab.agentec.jp/abook_android/abook_check/merge_requests/206/diffs?diff_id=6958&start_sha=d901cb70e683978de023f7f06227b9951f0a1d88#35c43bdcbed56fa047ba60c2069e60fffdcbf6c4_164_142)
      Toggle commit list
    Please register or sign in to reply
  • Kim Peace
    @kim-p started a discussion on an old version of the diff Aug 26, 2021
    Last updated by onuma Aug 26, 2021
    ABVJE_UI_Android/src/jp/agentec/abook/abv/cl/push/ABVFcmListenerService.java
    215 157 if (currentActivity.getClass().equals(HTMLWebViewActivity.class) ||
    216 158 currentActivity.getClass().equals(ContentViewActivity.class) ||
    217 159 currentActivity.getClass().equals(OperationRelatedContentActivity.class) ||
    218 currentActivity.getClass().equals(OperationListActivity.class)
    160 currentActivity.getClass().equals(OperationListActivity.class) ||
    161 currentActivity.getClass().equals(ImageViewActivity.class) ||
    162 currentActivity.getClass().equals(VideoViewActivity.class)
    219 163 ){
    220 ((ABVAuthenticatedActivity)currentActivity).showChatRoomPopupMessage((Context)currentActivity, textMessage,
    221 data, operationID, roomID, roomName, roomType, pushSendLoginId, pushSendDate, collaborationType, fromClassName);
    164 // 呼び出し元のActivity名を保存しておく
    165 messageMap.put(AppDefType.ChatPushMessageKey.fromActivityName, fromClassName);
    166 messageMap.put(AppDefType.ChatPushMessageKey.isNewVersion, "true");
    167 ((ABVAuthenticatedActivity)currentActivity).showChatRoomPopupMessage((Context)currentActivity, messageMap);
    222 168 } else {
    169 // 既存の処理
    • Kim Peace @kim-p commented Aug 26, 2021
      Master

      [nits] 既読の処理が見当たらないです。pushmsgdialog intent(?)を作成し、そこにデータを格納し、新しいactivityを開く処理に見えます。

      [nits] 既読の処理が見当たらないです。pushmsgdialog intent(?)を作成し、そこにデータを格納し、新しいactivityを開く処理に見えます。
    • onuma @onuma commented Aug 26, 2021
      Master

      コメントの間違いでした。 「それ以外のActivityの場合の処理」に修正します。

      コメントの間違いでした。 「それ以外のActivityの場合の処理」に修正します。
    • onuma @onuma

      changed this line in version 3 of the diff

      Aug 26, 2021

      changed this line in version 3 of the diff

      changed this line in [version 3 of the diff](https://gitlab.agentec.jp/abook_android/abook_check/merge_requests/206/diffs?diff_id=6958&start_sha=d901cb70e683978de023f7f06227b9951f0a1d88#35c43bdcbed56fa047ba60c2069e60fffdcbf6c4_169_147)
      Toggle commit list
    Please register or sign in to reply
  • Kim Peace
    @kim-p started a discussion on an old version of the diff Aug 26, 2021
    Last updated by onuma Aug 26, 2021
    ABVJE_UI_Android/src/jp/agentec/abook/abv/cl/push/ABVFcmListenerService.java
    318 /**
    319 * 通知エリアに表示するテキストを決定する
    320 * @param textMessage プッシュメッセージをJSONOjbcetにした時の、AppDefType.PushMessageKey.message の値
    321 * @return 表示するテキスト
    322 */
    323 private String getContentText(String textMessage) {
    324 if (!StringUtil.isNullOrEmpty(textMessage) && textMessage.contains(ABookCommConstants.INVITE_COLLABORATION)) {
    325 return getString(R.string.msg_invite_collaboration);
    326 }
    327 return textMessage;
    328 }
    329
    330 /**
    331 * プッシュメッセージからJSONObjectを作成する。
    332 * @param jsonText 受信したプッシュメッセージをJSONObjectにする。
    333 * @return
    • Kim Peace @kim-p commented Aug 26, 2021
      Master

      returnの値があるのにコメントが書いてないです。

      returnの値があるのにコメントが書いてないです。
    • onuma @onuma commented Aug 26, 2021
      Master

      コメントを追加します。

      コメントを追加します。
    • onuma @onuma

      changed this line in version 3 of the diff

      Aug 26, 2021

      changed this line in version 3 of the diff

      changed this line in [version 3 of the diff](https://gitlab.agentec.jp/abook_android/abook_check/merge_requests/206/diffs?diff_id=6958&start_sha=d901cb70e683978de023f7f06227b9951f0a1d88#35c43bdcbed56fa047ba60c2069e60fffdcbf6c4_333_307)
      Toggle commit list
    Please register or sign in to reply
  • Kim Peace
    @kim-p started a discussion on an old version of the diff Aug 26, 2021
    Last updated by onuma Aug 26, 2021
    ABVJE_UI_Android/src/jp/agentec/abook/abv/cl/push/ABVFcmListenerService.java
    320 * @param textMessage プッシュメッセージをJSONOjbcetにした時の、AppDefType.PushMessageKey.message の値
    321 * @return 表示するテキスト
    322 */
    323 private String getContentText(String textMessage) {
    324 if (!StringUtil.isNullOrEmpty(textMessage) && textMessage.contains(ABookCommConstants.INVITE_COLLABORATION)) {
    325 return getString(R.string.msg_invite_collaboration);
    326 }
    327 return textMessage;
    328 }
    329
    330 /**
    331 * プッシュメッセージからJSONObjectを作成する。
    332 * @param jsonText 受信したプッシュメッセージをJSONObjectにする。
    333 * @return
    334 */
    335 private JSONObject createMessageJsonObject(String jsonText) {
    • Kim Peace @kim-p commented Aug 26, 2021
      Master

      [ask] MRの中では、こちらの関数が使用されているところがなさそうに見えます。。

      [ask] MRの中では、こちらの関数が使用されているところがなさそうに見えます。。
    • onuma @onuma commented Aug 26, 2021
      Master

      削除します。

      削除します。
    • onuma @onuma

      changed this line in version 3 of the diff

      Aug 26, 2021

      changed this line in version 3 of the diff

      changed this line in [version 3 of the diff](https://gitlab.agentec.jp/abook_android/abook_check/merge_requests/206/diffs?diff_id=6958&start_sha=d901cb70e683978de023f7f06227b9951f0a1d88#35c43bdcbed56fa047ba60c2069e60fffdcbf6c4_335_307)
      Toggle commit list
    Please register or sign in to reply
  • Kim Peace
    @kim-p started a discussion on an old version of the diff Aug 26, 2021
    Last updated by onuma Aug 26, 2021
    ABVJE_UI_Android/src/jp/agentec/abook/abv/ui/common/activity/ABVAuthenticatedActivity.java
    1244 1243 }
    1245 1244
    1246 1245 /**
    1247 * プッシュメッセージ受信後のダイアログを表示する。
    1248 * @param context コンテキスト
    1249 * @param textMessage プッシュメッセージ
    1250 * @param data Intentに付属するデータ
    1251 * @param operationID operationID
    1252 * @param roomID roomID
    1253 * @param roomName roomName
    1254 * @param roomType roomType
    1255 * @param pushSendLoginId pushSendLoginId
    1256 * @param pushSendDate pushSendDate
    1257 * @param collaborationType ABookCommConstants.COLLABORATION_TYPE のいずれか
    1246 * ッシュメッセージがあるので、チャットルームに遷移する。
    • Kim Peace @kim-p commented Aug 26, 2021
      Master

      ッシュ → プッシュ

      ッシュ → プッシュ
    • onuma @onuma commented Aug 26, 2021
      Master

      修正します。

      修正します。
    • onuma @onuma

      changed this line in version 3 of the diff

      Aug 26, 2021

      changed this line in version 3 of the diff

      changed this line in [version 3 of the diff](https://gitlab.agentec.jp/abook_android/abook_check/merge_requests/206/diffs?diff_id=6958&start_sha=d901cb70e683978de023f7f06227b9951f0a1d88#e59744bb2eed89bb0481731e7fd3e60b44c4c163_1246_1246)
      Toggle commit list
    Please register or sign in to reply
  • Kim Peace
    @kim-p started a discussion on an old version of the diff Aug 26, 2021
    Last updated by onuma Aug 26, 2021
    ABVJE_UI_Android/src/jp/agentec/abook/abv/ui/common/activity/ABVAuthenticatedActivity.java
    1292 * チャットルームへ遷移する。
    1281 * プッシュメッセージ受信後のダイアログを表示する。
    1282 * @param context コンテキスト
    1283 * @param messageMap プッシュメッセージ
    1293 1284 */
    1294 public void goChatRoom() {
    1295 if (roomId <= 0 && StringUtil.isNullOrEmpty(roomName)) {
    1285 public void showChatRoomPopupMessage(Context context, Map<String, String> messageMap) {
    1286 String messageBody = messageMap.get(AppDefType.PushMessageKey.message);
    1287 PushMessageJSON json;
    1288 if (StringUtil.isNullOrEmpty(messageBody)) {
    1296 1289 return;
    1297 1290 }
    1298 if (StringUtil.isNullOrEmpty(collaborationType)) {
    1299 ActivityHandlingHelper.getInstance().startChatWebViewActivity(fromClassName, roomId, roomName, roomType);
    1291 json = new PushMessageJSON(messageBody);
    • Kim Peace @kim-p commented Aug 26, 2021
      Master

      1287行のPushMessageJSON jsonと同じ行にしてください。

      PushMessageJSON json = new PushMessageJSON(messageBody);
      Edited Aug 26, 2021 by Kim Peace
      1287行の`PushMessageJSON json`と同じ行にしてください。 ```java PushMessageJSON json = new PushMessageJSON(messageBody); ```
    • onuma @onuma commented Aug 26, 2021
      Master

      messageBodyがnullもしくは空文字だと Excerptionが発生するので 1291行目に、PushMessageJSON json = new PushMessageJSON(messageBody); と修正しました。

      Edited Aug 26, 2021 by onuma
      messageBodyがnullもしくは空文字だと Excerptionが発生するので 1291行目に、PushMessageJSON json = new PushMessageJSON(messageBody); と修正しました。
    • onuma @onuma

      changed this line in version 3 of the diff

      Aug 26, 2021

      changed this line in version 3 of the diff

      changed this line in [version 3 of the diff](https://gitlab.agentec.jp/abook_android/abook_check/merge_requests/206/diffs?diff_id=6958&start_sha=d901cb70e683978de023f7f06227b9951f0a1d88#e59744bb2eed89bb0481731e7fd3e60b44c4c163_1291_1290)
      Toggle commit list
    Please register or sign in to reply
  • Kim Peace
    @kim-p started a discussion on an old version of the diff Aug 26, 2021
    Last updated by onuma Aug 26, 2021
    ABVJE_UI_Android/src/jp/agentec/abook/abv/ui/common/activity/ShowPushMessageDailogActivity.java
    125 125 isCollabration = MeetingManager.getInstance().isCollaboration();
    126 126 Bundle extras = getIntent().getExtras();
    127 127 if (extras != null && !isMeetingRoomConnected) {
    128 setResult(ABookCommConstants.PUSH_MESSAGE_DLG_RESULT.OK, getIntent());
    129 finish();
    128 boolean isNewVersion = extras.getBoolean(AppDefType.ChatPushMessageKey.isNewVersion);
    • Kim Peace @kim-p commented Aug 26, 2021
      Master

      [ask] chatにnew messageバージョンが存在していたのかこんがらがるのですが、こちらはどういう新しいバージョンをチェックしているのでしょうか。

      [ask] chatにnew messageバージョンが存在していたのかこんがらがるのですが、こちらはどういう新しいバージョンをチェックしているのでしょうか。
    • onuma @onuma commented Aug 26, 2021
      Master

      isNewVersion がtrueの場合は、iOSと同じ画面遷移をします。falseの場合は、いままでと同じ画面遷移をします。

      isNewVersion がtrueの場合は、iOSと同じ画面遷移をします。falseの場合は、いままでと同じ画面遷移をします。
    • Kim Peace @kim-p commented Aug 26, 2021
      Master

      この変数名だと次のバージョンが出た時対応ができないので、より具体的な名前にしてほしいです。

      Edited Aug 26, 2021 by Kim Peace
      この変数名だと次のバージョンが出た時対応ができないので、より具体的な名前にしてほしいです。
    • onuma @onuma

      changed this line in version 3 of the diff

      Aug 26, 2021

      changed this line in version 3 of the diff

      changed this line in [version 3 of the diff](https://gitlab.agentec.jp/abook_android/abook_check/merge_requests/206/diffs?diff_id=6958&start_sha=d901cb70e683978de023f7f06227b9951f0a1d88#a55ab50e84ed37ba1826dc065daacf7864a663c6_128_128)
      Toggle commit list
    Please register or sign in to reply
  • Kim Peace
    @kim-p started a discussion on an old version of the diff Aug 26, 2021
    Last updated by onuma Aug 26, 2021
    ABVJE_UI_Android/src/jp/agentec/abook/abv/ui/common/activity/ABVAuthenticatedActivity.java
    159 161 int PAYMENT = 3;
    160 162 }
    161 163
    162 // ABookCommunicationで使用する。
    163 private Long roomId = new Long(0);
    164 private String roomName = "";
    165 private String collaborationType = "";
    166 private String roomType = "";
    167 private String fromClassName = "";
    164 // 遷移元のアクティビティ名
    165 // PushMessage受信時に直接ChatRoomへ行かずに、ひとつまえのActivityに戻る為に使用する。
    166 public String fromActivityName;
    • Kim Peace @kim-p commented Aug 26, 2021
      Master

      fromActivityName -> sourceActivityName or baseActivityName

      `fromActivityName` -> `sourceActivityName` or `baseActivityName`
    • onuma @onuma commented Aug 26, 2021
      Master

      baseActivityNameにします。

      baseActivityNameにします。
    • onuma @onuma

      changed this line in version 3 of the diff

      Aug 26, 2021

      changed this line in version 3 of the diff

      changed this line in [version 3 of the diff](https://gitlab.agentec.jp/abook_android/abook_check/merge_requests/206/diffs?diff_id=6958&start_sha=d901cb70e683978de023f7f06227b9951f0a1d88#e59744bb2eed89bb0481731e7fd3e60b44c4c163_166_166)
      Toggle commit list
    Please register or sign in to reply
  • Kim Peace
    @kim-p started a discussion on an old version of the diff Aug 26, 2021
    Last updated by onuma Aug 26, 2021
    ABVJE_UI_Android/src/jp/agentec/abook/abv/ui/home/helper/ActivityHandlingHelper.java
    1697
    1698 intent.setClassName(mContext.getPackageName(), nextActivity);
    1699 intent.setFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);
    1700 getCurrentActivity().startActivity(intent);
    1701 }
    1702
    1703 /**
    1704 1672 * プシュメッセージからチャットに遷移する
    1705 * fromClassName の値によっては、作業一覧、コンテンツ一覧のどちらかに戻ってから、チャットに遷移する)
    1706 * @param fromClassName 呼び出し元のクラス名(
    1707 * @param roomId roomId
    1708 * @param roomName room
    1709 * @param roomType roomaType
    1710 * @param collaborationType ABookCommConstants.COLLABORATION_TYPE のいずれか
    1673 * @param roomId
    1674 * @param roomName
    • Kim Peace @kim-p commented Aug 26, 2021
      Master

      [nits] コメントにString nextActivityName, String fromActivityNameの説明がないです。

      [nits] コメントに`String nextActivityName, String fromActivityName`の説明がないです。
    • onuma @onuma commented Aug 26, 2021
      Master

      説明を追加します。

      説明を追加します。
    • onuma @onuma

      changed this line in version 3 of the diff

      Aug 26, 2021

      changed this line in version 3 of the diff

      changed this line in [version 3 of the diff](https://gitlab.agentec.jp/abook_android/abook_check/merge_requests/206/diffs?diff_id=6958&start_sha=d901cb70e683978de023f7f06227b9951f0a1d88#9f691da92e673d9c91da4da742f20d398837c0be_1674_1671)
      Toggle commit list
    Please register or sign in to reply
  • Kim Peace
    @kim-p started a discussion on an old version of the diff Aug 26, 2021
    Last updated by onuma Aug 26, 2021
    ABVJE_UI_Android/src/jp/agentec/abook/abv/ui/home/helper/ActivityHandlingHelper.java
    1701 }
    1702
    1703 /**
    1704 1672 * プシュメッセージからチャットに遷移する
    1705 * fromClassName の値によっては、作業一覧、コンテンツ一覧のどちらかに戻ってから、チャットに遷移する)
    1706 * @param fromClassName 呼び出し元のクラス名(
    1707 * @param roomId roomId
    1708 * @param roomName room
    1709 * @param roomType roomaType
    1710 * @param collaborationType ABookCommConstants.COLLABORATION_TYPE のいずれか
    1673 * @param roomId
    1674 * @param roomName
    1711 1675 */
    1712 public void startChatWebViewActivityWithCollaboration(String fromClassName, Long roomId, String roomName, String roomType, String collaborationType) {
    1713 String className = ChatWebViewActivity.class.getName();
    1676 public void startChatWebViewActivity(Long roomId, String roomName, String nextActivityName, String fromActivityName) {
    • Kim Peace @kim-p commented Aug 26, 2021
      Master

      [nits] nextActivityName -> targetActivityName
      fromActivityName -> sourceActivityName

      Edited Aug 26, 2021 by Kim Peace
      [nits] `nextActivityName` -> `targetActivityName` <br>`fromActivityName` -> `sourceActivityName`
    • onuma @onuma commented Aug 26, 2021
      Master

      修正しました。

      修正しました。
    • onuma @onuma

      changed this line in version 3 of the diff

      Aug 26, 2021

      changed this line in version 3 of the diff

      changed this line in [version 3 of the diff](https://gitlab.agentec.jp/abook_android/abook_check/merge_requests/206/diffs?diff_id=6958&start_sha=d901cb70e683978de023f7f06227b9951f0a1d88#9f691da92e673d9c91da4da742f20d398837c0be_1676_1676)
      Toggle commit list
    Please register or sign in to reply
  • Kim Peace
    @kim-p started a discussion on an old version of the diff Aug 26, 2021
    Last updated by onuma Aug 26, 2021
    ABVJE_UI_Android/src/jp/agentec/abook/abv/ui/home/helper/ActivityHandlingHelper.java
    1965 1917 }
    1966 1918
    1967 1919 /**
    1920 * プッシュメッセージから協業に遷移する
    1921 * @param roomId
    1922 * @param roomName
    1923 * @param collaborationType
    1924 * @param roomType
    1925 */
    1926 public void startChatWebViewActivityWithCollaboration(Long roomId, String roomName, String collaborationType, String roomType, String nextActivityName, String fromActivityName) {
    1927 boolean isNormalSize = (mContext.getResources().getConfiguration().screenLayout & Configuration.SCREENLAYOUT_SIZE_MASK) == Configuration.SCREENLAYOUT_SIZE_NORMAL;
    1928 Intent intent = new Intent();
    1929 intent.putExtra("chatWebviewUrl",ABVEnvironment.getInstance().acmsAddress + ABVDataCache.getInstance().getUrlPath() + "/chatapi/chat/");
    • Kim Peace @kim-p commented Aug 26, 2021
      Master

      [nits] ,の後はスペースを開けてください。

      [nits] `,`の後はスペースを開けてください。
    • onuma @onuma commented Aug 26, 2021
      Master

      開けました

      開けました
    • onuma @onuma

      changed this line in version 3 of the diff

      Aug 26, 2021

      changed this line in version 3 of the diff

      changed this line in [version 3 of the diff](https://gitlab.agentec.jp/abook_android/abook_check/merge_requests/206/diffs?diff_id=6958&start_sha=d901cb70e683978de023f7f06227b9951f0a1d88#9f691da92e673d9c91da4da742f20d398837c0be_1929_1927)
      Toggle commit list
    Please register or sign in to reply
  • Kim Peace
    @kim-p started a discussion on an old version of the diff Aug 26, 2021
    Last updated by onuma Aug 26, 2021
    ABVJE_UI_Android/src/jp/agentec/abook/abv/ui/home/helper/ActivityHandlingHelper.java
    1965 1917 }
    1966 1918
    1967 1919 /**
    1920 * プッシュメッセージから協業に遷移する
    1921 * @param roomId
    1922 * @param roomName
    1923 * @param collaborationType
    1924 * @param roomType
    1925 */
    1926 public void startChatWebViewActivityWithCollaboration(Long roomId, String roomName, String collaborationType, String roomType, String nextActivityName, String fromActivityName) {
    1927 boolean isNormalSize = (mContext.getResources().getConfiguration().screenLayout & Configuration.SCREENLAYOUT_SIZE_MASK) == Configuration.SCREENLAYOUT_SIZE_NORMAL;
    • Kim Peace @kim-p commented Aug 26, 2021
      Master

      [must] 宣言されているけど、使われているところがございません。

      [must] 宣言されているけど、使われているところがございません。
    • onuma @onuma commented Aug 26, 2021
      Master

      削除しました。他にも同じ処理があったので削除しました。

      削除しました。他にも同じ処理があったので削除しました。
    • onuma @onuma

      changed this line in version 3 of the diff

      Aug 26, 2021

      changed this line in version 3 of the diff

      changed this line in [version 3 of the diff](https://gitlab.agentec.jp/abook_android/abook_check/merge_requests/206/diffs?diff_id=6958&start_sha=d901cb70e683978de023f7f06227b9951f0a1d88#9f691da92e673d9c91da4da742f20d398837c0be_1927_1926)
      Toggle commit list
    Please register or sign in to reply
  • Kim Peace
    @kim-p started a discussion on an old version of the diff Aug 26, 2021
    Last updated by onuma Aug 26, 2021
    ABVJE_UI_Android/src/jp/agentec/abook/abv/ui/viewer/activity/ContentViewActivity.java
    3829 3828
    3830 3829 if (requestCode == ABookCommConstants.PUSH_MESSAGE_DLG_REQUEST_CODE) {
    3831 if (resultCode == ABookCommConstants.PUSH_MESSAGE_DLG_RESULT.OK) {
    3832 // Activityを閉じて遷移する
    3833 exitActivity();
    3834 goChatRoom();
    3830 // プッシュメッセージダイアログのリザルトだった場合
    3831 if (resultCode == ABookCommConstants.PUSH_MESSAGE_DLG_RESULT.OK && !StringUtil.isNullOrEmpty(fromActivityName)) {
    3832 finishActivity();
    3833 goChatRoom(intent, fromActivityName, ContentViewActivity.class.getName());
    3835 3834 }
    3836 3835 return;
    3837 3836 }
    3838 3837
    3839 if (intent != null && resultCode == RESULT_OK) {
    3838 if (intent != null && resultCode == RESULT_OK) {
    • Kim Peace @kim-p commented Aug 26, 2021
      Master

      [nits] indentの確認をお願いします。他の行ではスペースを使っています。

      [nits] indentの確認をお願いします。他の行ではスペースを使っています。
    • onuma @onuma commented Aug 26, 2021
      Master

      スペースに変更しました。ここだけではなく既存のソースコードはタブになっています。

      スペースに変更しました。ここだけではなく既存のソースコードはタブになっています。
    • onuma @onuma

      changed this line in version 3 of the diff

      Aug 26, 2021

      changed this line in version 3 of the diff

      changed this line in [version 3 of the diff](https://gitlab.agentec.jp/abook_android/abook_check/merge_requests/206/diffs?diff_id=6958&start_sha=d901cb70e683978de023f7f06227b9951f0a1d88#87e2c2ac1989281cb2693628f4bdad2d95b507c9_3838_3838)
      Toggle commit list
    Please register or sign in to reply
  • Kim Peace
    @kim-p started a discussion on an old version of the diff Aug 26, 2021
    Last updated by onuma Aug 26, 2021
    ABVJE_UI_Android/src/jp/agentec/abook/abv/ui/viewer/activity/ContentViewActivity.java
    3851 3850 isAnotherViewOpenFlg = false;
    3852 3851 // playPageBGMSound(mCurrentPageNumber); //프리뷰 모드 일때 음악재생 Bug
    3853 3852 break;
    3854 case ABookCommConstants.ABOOK_CHECK_TASK_IMAGE:
    3853 case ABookCommConstants.ABOOK_CHECK_TASK_IMAGE:
    • Kim Peace @kim-p commented Aug 26, 2021
      Master

      [nits] indentを確認してください。

      [nits] indentを確認してください。
    • onuma @onuma commented Aug 26, 2021
      Master

      スペースにしました。

      スペースにしました。
    • onuma @onuma

      changed this line in version 3 of the diff

      Aug 26, 2021

      changed this line in version 3 of the diff

      changed this line in [version 3 of the diff](https://gitlab.agentec.jp/abook_android/abook_check/merge_requests/206/diffs?diff_id=6958&start_sha=d901cb70e683978de023f7f06227b9951f0a1d88#87e2c2ac1989281cb2693628f4bdad2d95b507c9_3853_3853)
      Toggle commit list
    Please register or sign in to reply
  • Kim Peace @kim-p

    assigned to @onuma

    Aug 26, 2021

    assigned to @onuma

    assigned to @onuma
    Toggle commit list
  • Kim Jinsung
    @kim_j started a discussion on commit 50b97e6a Aug 26, 2021
    Last updated by onuma Aug 26, 2021
    ABVJE_UI_Android/src/jp/agentec/abook/abv/cl/push/ABVFcmListenerService.java
    98 98 msg.put(AppDefType.PushMessageKey.message, textMessage);
    99 99 }
    100 100
    101 String roomType = null;
    102 String[] inviteMessage;
    101 103 if (textMessage.contains(INVITE_COLLABORATION)) {
    102 String roomType = Integer.toString(json.getInt(AppDefType.ChatPushMessageKey.roomType));
    103 String[] inviteMessage = textMessage.split(CHAT_MESSAGE_SEPERATOR);
    104 showCollaborationPopUpMessage(roomId, roomName, roomType, pushSendLoginId, pushSendDate, inviteMessage[1]);
    105 return;
    104 roomType = Integer.toString(json.getInt(AppDefType.ChatPushMessageKey.roomType));
    105 inviteMessage = textMessage.split(CHAT_MESSAGE_SEPERATOR);
    106 //showCollaborationPopUpMessage(roomId, roomName, roomType, pushSendLoginId, pushSendDate, inviteMessage[1]);
    107 //return;
    108 Logger.i(TAG,"" + roomType);
    109 Logger.i(TAG,"" + inviteMessage[1]);
    • Kim Jinsung @kim_j commented Aug 26, 2021
      Developer

      重要な情報でないので、Logger.dにしてください。 ログの確認時にはLogger.dを利用してください。

      重要な情報でないので、Logger.dにしてください。 ログの確認時にはLogger.dを利用してください。
    • onuma @onuma commented Aug 26, 2021
      Master

      この行は、d901cb70 のコミットで消しました。最後のコミットのファイルで確認していただけますか?

      この行は、d901cb70 のコミットで消しました。最後のコミットのファイルで確認していただけますか?
    Please register or sign in to reply
  • onuma
    @onuma started a discussion on commit d901cb70 Aug 26, 2021
    • onuma @onuma

      mentioned in commit 50b97e6a

      Aug 26, 2021

      mentioned in commit 50b97e6a

      mentioned in commit 50b97e6a30ee7b11c694d1a107c30373bfc55b4f
      Toggle commit list
    Please register or sign in to reply
  • onuma @onuma

    added 1 commit

    • dd69043a - MRで指摘されたソースを修正した。

    Compare with previous version

    Aug 26, 2021

    added 1 commit

    • dd69043a - MRで指摘されたソースを修正した。

    Compare with previous version

    added 1 commit * dd69043a - MRで指摘されたソースを修正した。 [Compare with previous version](https://gitlab.agentec.jp/abook_android/abook_check/merge_requests/206/diffs?diff_id=6958&start_sha=d901cb70e683978de023f7f06227b9951f0a1d88)
    Toggle commit list
  • onuma @onuma

    added 1 commit

    • b7220ec9 - タブスペースを空白に変更した

    Compare with previous version

    Aug 26, 2021

    added 1 commit

    • b7220ec9 - タブスペースを空白に変更した

    Compare with previous version

    added 1 commit * b7220ec9 - タブスペースを空白に変更した [Compare with previous version](https://gitlab.agentec.jp/abook_android/abook_check/merge_requests/206/diffs?diff_id=6959&start_sha=dd69043a8e97ed515dfe4f4b51aa9b339c8cca76)
    Toggle commit list
  • onuma @onuma

    assigned to @kim-p

    Aug 26, 2021

    assigned to @kim-p

    assigned to @kim-p
    Toggle commit list
  • Kim Peace
    @kim-p started a discussion on the diff Aug 26, 2021
    ABVJE_UI_Android/src/jp/agentec/abook/abv/ui/common/activity/ABVAuthenticatedActivity.java
    1295 messageText = getString(R.string.msg_invite_collaboration);
    1296 }
    1297
    1298 Intent pushMsgDialog = new Intent(context, ShowPushMessageDailogActivity.class);
    1299 pushMsgDialog.putExtra(AppDefType.PushMessageKey.message, messageText);
    1300 pushMsgDialog.putExtra(AppDefType.PushMessageKey.data, json.getData());
    1301 pushMsgDialog.putExtra(AppDefType.PushMessageKey.operationId, json.getOperationID());
    1302 pushMsgDialog.putExtra(AppDefType.ChatPushMessageKey.roomId, json.getRoomId());
    1303 pushMsgDialog.putExtra(AppDefType.ChatPushMessageKey.roomName, json.getRoomName());
    1304 pushMsgDialog.putExtra(AppDefType.ChatPushMessageKey.pushSendLoginId, json.getPushSendLoginId());
    1305 pushMsgDialog.putExtra(AppDefType.ChatPushMessageKey.pushSendDate, json.getPushSendDate());
    1306 pushMsgDialog.putExtra(AppDefType.ChatPushMessageKey.roomType, json.getRoomType());
    1307 pushMsgDialog.putExtra(AppDefType.ChatPushMessageKey.collaborationType, json.getCollaborationType());
    1308
    1309 pushMsgDialog.putExtra(AppDefType.ChatPushMessageKey.fromActivityName, messageMap.get(AppDefType.ChatPushMessageKey.fromActivityName));
    1310 String newVersion = messageMap.get(AppDefType.ChatPushMessageKey.needsDisplayOperationOrOperationRelatedContentScreen);
    • Kim Peace @kim-p commented Aug 26, 2021
      Master

      [nits] newVersion -> needsDisplayOperationOrOperationRelatedContentScreen

      Edited Aug 26, 2021 by Kim Peace
      [nits] `newVersion` -> `needsDisplayOperationOrOperationRelatedContentScreen`
    Please register or sign in to reply
  • Kim Peace @kim-p

    marked the task @kim-p as completed

    Aug 26, 2021

    marked the task @kim-p as completed

    marked the task **@kim-p** as completed
    Toggle commit list
  • Kim Peace @kim-p

    assigned to @kim_j

    Aug 26, 2021

    assigned to @kim_j

    assigned to @kim_j
    Toggle commit list
  • Kim Jinsung @kim_j

    marked the task @kim_j as completed

    Aug 26, 2021

    marked the task @kim_j as completed

    marked the task **@kim_j** as completed
    Toggle commit list
  • Kim Jinsung @kim_j

    assigned to @onuma

    Aug 26, 2021

    assigned to @onuma

    assigned to @onuma
    Toggle commit list
  • onuma @onuma

    merged

    Aug 26, 2021

    merged

    merged
    Toggle commit list
  • onuma @onuma

    mentioned in commit bc755451

    Aug 26, 2021

    mentioned in commit bc755451

    mentioned in commit bc7554515e0626c20f04b473a4936d8408e15677
    Toggle commit list
  • Write
  • Preview
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 sign in to comment
onuma
Assignee
onuma @onuma
Assign to
None
Milestone
None
Assign milestone
Time tracking
3
3 participants
Reference: abook_android/abook_check!206
×

Revert this merge request

Switch branch
Cancel
A new branch will be created in your fork and a new merge request will be started.
×

Cherry-pick this merge request

Switch branch
Cancel
A new branch will be created in your fork and a new merge request will be started.