整理Entrance type
This commit is contained in:
@ -72,11 +72,16 @@ public class ShareCardPicActivity extends BaseActivity {
|
||||
ImageView mShareChangImageIcon;
|
||||
@BindView(R.id.sharecard_chang_img_tv)
|
||||
TextView mShareChangImageTv;
|
||||
int currentImgPosition;
|
||||
|
||||
public static final String KEY_SHARE_ARRIMG = "shareArrImg";
|
||||
|
||||
private String gameName;
|
||||
private String gameIconUrl;
|
||||
private String shareContent;
|
||||
private String picName;
|
||||
|
||||
private int currentImgPosition;
|
||||
|
||||
private List<String> shareArrImg;
|
||||
|
||||
private Bitmap shareBm;
|
||||
@ -96,14 +101,14 @@ public class ShareCardPicActivity extends BaseActivity {
|
||||
|
||||
Intent intent = new Intent(context, ShareCardPicActivity.class);
|
||||
Bundle bundle = new Bundle();
|
||||
bundle.putString("gameName", concernEntity.getGameName());
|
||||
bundle.putString("gameIconUrl", concernEntity.getGameIcon());
|
||||
bundle.putString("shareContent", shareContent);
|
||||
bundle.putString(EntranceUtils.KEY_GAMENAME, concernEntity.getGameName());
|
||||
bundle.putString(EntranceUtils.KEY_GAME_ICON_URL, concernEntity.getGameIcon());
|
||||
bundle.putString(EntranceUtils.KEY_SHARECONTENT, shareContent);
|
||||
if (concernEntity.getLink() == null) {
|
||||
bundle.putString("newsId", concernEntity.getId());
|
||||
bundle.putString(EntranceUtils.KEY_NEWSID, concernEntity.getId());
|
||||
}
|
||||
if (concernEntity.getImg() != null && concernEntity.getImg().size() > 0) {
|
||||
bundle.putStringArrayList("shareArrImg", (ArrayList<String>) concernEntity.getImg());
|
||||
bundle.putStringArrayList(KEY_SHARE_ARRIMG, (ArrayList<String>) concernEntity.getImg());
|
||||
}
|
||||
intent.putExtras(bundle);
|
||||
intent.putExtra(EntranceUtils.KEY_ENTRANCE, StringUtils.buildString(entrance, "+(消息详情[", concernEntity.getGameName(), "])"));
|
||||
@ -130,11 +135,11 @@ public class ShareCardPicActivity extends BaseActivity {
|
||||
protected void onCreate(Bundle savedInstanceState) {
|
||||
super.onCreate(savedInstanceState);
|
||||
Bundle extras = getIntent().getExtras();
|
||||
gameName = extras.getString("gameName");
|
||||
gameIconUrl = extras.getString("gameIconUrl");
|
||||
shareContent = extras.getString("shareContent");
|
||||
newsId = extras.getString("newsId");
|
||||
List<String> arrImg = extras.getStringArrayList("shareArrImg");
|
||||
gameName = extras.getString(EntranceUtils.KEY_GAMENAME);
|
||||
gameIconUrl = extras.getString(EntranceUtils.KEY_GAME_ICON_URL);
|
||||
shareContent = extras.getString(EntranceUtils.KEY_SHARECONTENT);
|
||||
newsId = extras.getString(EntranceUtils.KEY_NEWSID);
|
||||
List<String> arrImg = extras.getStringArrayList(KEY_SHARE_ARRIMG);
|
||||
|
||||
picName = "shareImgPic.jpg";
|
||||
currentImgPosition = 0;
|
||||
|
||||
Reference in New Issue
Block a user