Commit f7d2291e by Kim Jinsung

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

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