バックグラウンドでプッシュメッセージ受信時の動作をiOSと同じにした。
Showing
... | @@ -1641,11 +1641,10 @@ public class ActivityHandlingHelper extends ABookHelper implements RemoteObserve | ... | @@ -1641,11 +1641,10 @@ public class ActivityHandlingHelper extends ABookHelper implements RemoteObserve |
String loginId = ABVDataCache.getInstance().getMemberInfo().loginId; | String loginId = ABVDataCache.getInstance().getMemberInfo().loginId; | ||
String shopName = ABVDataCache.getInstance().getUrlPath(); | String shopName = ABVDataCache.getInstance().getUrlPath(); | ||
intent.putExtra("loginId", loginId); | intent.putExtra("loginId", loginId); | ||
Please
register
or
sign in
to reply
|
|||
intent.putExtra("shopName", shopName); | intent.putExtra(AppDefType.ChatPushMessageKey.shopName, shopName); | ||
if(dto != null) | if(dto != null) { | ||
{ | intent.putExtra(AppDefType.ChatPushMessageKey.roomId, dto.roomId); | ||
intent.putExtra("roomId",dto.roomId); | intent.putExtra(AppDefType.ChatPushMessageKey.roomName, dto.roomName); | ||
intent.putExtra("roomName", dto.roomName); | |||
} | } | ||
intent.setClassName(mContext.getPackageName(), className); | intent.setClassName(mContext.getPackageName(), className); | ||
intent.setFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP); | intent.setFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP); | ||
... | @@ -1663,7 +1662,7 @@ public class ActivityHandlingHelper extends ABookHelper implements RemoteObserve | ... | @@ -1663,7 +1662,7 @@ public class ActivityHandlingHelper extends ABookHelper implements RemoteObserve |
String loginId = ABVDataCache.getInstance().getMemberInfo().loginId; | String loginId = ABVDataCache.getInstance().getMemberInfo().loginId; | ||
String shopName = ABVDataCache.getInstance().getUrlPath(); | String shopName = ABVDataCache.getInstance().getUrlPath(); | ||
intent.putExtra("loginId", loginId); | intent.putExtra("loginId", loginId); | ||
intent.putExtra("shopName", shopName); | intent.putExtra(AppDefType.ChatPushMessageKey.shopName, shopName); | ||
intent.setClassName(mContext.getPackageName(), className); | intent.setClassName(mContext.getPackageName(), className); | ||
intent.setFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP); | intent.setFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP); | ||
getCurrentActivity().startActivity(intent); | getCurrentActivity().startActivity(intent); | ||
... | @@ -1672,7 +1671,7 @@ public class ActivityHandlingHelper extends ABookHelper implements RemoteObserve | ... | @@ -1672,7 +1671,7 @@ public class ActivityHandlingHelper extends ABookHelper implements RemoteObserve |
/** | /** | ||
* プシュメッセージからチャットに入る | * プシュメッセージからチャットに入る | ||
*/ | */ | ||
public void startChatWebViewActivity(String fromClassName, Long roomId, String roomName) { | public void startChatWebViewActivity(String fromClassName, Long roomId, String roomName, String roomType) { | ||
String className = ChatWebViewActivity.class.getName(); | String className = ChatWebViewActivity.class.getName(); | ||
boolean isNormalSize = (mContext.getResources().getConfiguration().screenLayout & Configuration.SCREENLAYOUT_SIZE_MASK) == Configuration.SCREENLAYOUT_SIZE_NORMAL; | boolean isNormalSize = (mContext.getResources().getConfiguration().screenLayout & Configuration.SCREENLAYOUT_SIZE_MASK) == Configuration.SCREENLAYOUT_SIZE_NORMAL; | ||
Intent intent = new Intent(); | Intent intent = new Intent(); | ||
... | @@ -1682,9 +1681,10 @@ public class ActivityHandlingHelper extends ABookHelper implements RemoteObserve | ... | @@ -1682,9 +1681,10 @@ public class ActivityHandlingHelper extends ABookHelper implements RemoteObserve |
String loginId = ABVDataCache.getInstance().getMemberInfo().loginId; | String loginId = ABVDataCache.getInstance().getMemberInfo().loginId; | ||
String shopName = ABVDataCache.getInstance().getUrlPath(); | String shopName = ABVDataCache.getInstance().getUrlPath(); | ||
intent.putExtra("loginId", loginId); | intent.putExtra("loginId", loginId); | ||
intent.putExtra("shopName", shopName); | intent.putExtra(AppDefType.ChatPushMessageKey.shopName, shopName); | ||
intent.putExtra("roomId", roomId); | intent.putExtra(AppDefType.ChatPushMessageKey.roomId, roomId); | ||
intent.putExtra("roomName", roomName); | intent.putExtra(AppDefType.ChatPushMessageKey.roomName, roomName); | ||
intent.putExtra(AppDefType.ChatPushMessageKey.roomType, roomType); | |||
String nextActivity = null; | String nextActivity = null; | ||
if (fromClassName.equals(HTMLWebViewActivity.class.getName())) { | if (fromClassName.equals(HTMLWebViewActivity.class.getName())) { | ||
... | @@ -1719,11 +1719,11 @@ public class ActivityHandlingHelper extends ABookHelper implements RemoteObserve | ... | @@ -1719,11 +1719,11 @@ public class ActivityHandlingHelper extends ABookHelper implements RemoteObserve |
String loginId = ABVDataCache.getInstance().getMemberInfo().loginId; | String loginId = ABVDataCache.getInstance().getMemberInfo().loginId; | ||
String shopName = ABVDataCache.getInstance().getUrlPath(); | String shopName = ABVDataCache.getInstance().getUrlPath(); | ||
intent.putExtra("loginId", loginId); | intent.putExtra("loginId", loginId); | ||
intent.putExtra("collaborationType", collaborationType); | intent.putExtra(AppDefType.ChatPushMessageKey.collaborationType, collaborationType); | ||
intent.putExtra("shopName", shopName); | intent.putExtra(AppDefType.ChatPushMessageKey.shopName, shopName); | ||
intent.putExtra("roomId", roomId); | intent.putExtra(AppDefType.ChatPushMessageKey.roomId, roomId); | ||
intent.putExtra("roomName", roomName); | intent.putExtra(AppDefType.ChatPushMessageKey.roomName, roomName); | ||
intent.putExtra("roomType", roomType); | intent.putExtra(AppDefType.ChatPushMessageKey.roomType, roomType); | ||
String nextActivity = null; | String nextActivity = null; | ||
if (fromClassName.equals(HTMLWebViewActivity.class.getName())) { | if (fromClassName.equals(HTMLWebViewActivity.class.getName())) { | ||
... | ... |