Commit e2ca57dd by Kim Jinsung

Merge branch 'communication/develop_44467' into 'communication/develop'

Bug #44467【ABook Communication Android】プッシュメッセージ受信からチャットルーム開いた時にホーム(作業一覧)】に戻らない

See merge request !229
parents 85a0b2c6 f7d2291e
......@@ -50,6 +50,8 @@ public class ABVUIDataCache {
*/
public String visibleActivityName = null;
//チャット用プッシュメッセージからの作業一覧なのか判断フラグ
public boolean isChatPushMessageOpenOperationList = false;
public ABVUIDataCache(Context context) {
this.context = context;
......
......@@ -1274,6 +1274,10 @@ public abstract class ABVAuthenticatedActivity extends ABVActivity implements Co
* プッシュメッセージがあるので、チャットルームに遷移する。
*/
public boolean goChatRoom(final Intent intent, final String targetActivityName, final String baseActivityName) {
//一度チャットルームを開いたのかチェックし、開いたらい何もしない
if (!getABVUIDataCache().isChatPushMessageOpenOperationList) {
return false;
}
if (!StringUtil.isNullOrEmpty(intent.getStringExtra(AppDefType.ChatPushMessageKey.roomName)) &&
intent.getLongExtra(AppDefType.ChatPushMessageKey.roomId, '0') > 0) {
......@@ -1300,6 +1304,7 @@ public abstract class ABVAuthenticatedActivity extends ABVActivity implements Co
}
}
}, 500);
getABVUIDataCache().isChatPushMessageOpenOperationList = false;
return true;
}
return false;
......
......@@ -393,6 +393,7 @@ public abstract class ABVNoAuthenticatedActivity extends ABVActivity {
intent.putExtra(AppDefType.ChatPushMessageKey.pushSendDate, extras.getLong(AppDefType.ChatPushMessageKey.pushSendDate));
intent.putExtra(AppDefType.ChatPushMessageKey.roomType, extras.getString(AppDefType.ChatPushMessageKey.roomType));
intent.putExtra(AppDefType.ChatPushMessageKey.collaborationType, extras.getString(AppDefType.ChatPushMessageKey.collaborationType));
getABVUIDataCache().isChatPushMessageOpenOperationList = true;
}
}
intent.setClassName(getApplicationContext().getPackageName(), getMainActivityClassName()).setFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);
......
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