Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

JUMP跳转之后List被置为空 #6

Open
AuroraStarMoon opened this issue Dec 9, 2020 · 1 comment
Open

JUMP跳转之后List被置为空 #6

AuroraStarMoon opened this issue Dec 9, 2020 · 1 comment

Comments

@AuroraStarMoon
Copy link

AuroraStarMoon commented Dec 9, 2020

setEvents()方法中写下代码直接跳转B界面。我打断点发现刚开始跳转的时候list的数据为四条,B界面关闭回来list直接为空 设置数据报错应用崩掉
jump(datas.get(i).getmClass(), new OnJumpResponseListener() {
@OverRide
public void OnResponse(JumpParameter jumpParameter) {
if (jumpParameter == null) {
toast("未返回任何数据");
datas.get(finalI).setmResult("false");
} else {
String result_text = String.valueOf(jumpParameter.get("返回数据1"));
if (result_text.equals("true")) {
datas.get(finalI).setmResult("true");
}else {
datas.get(finalI).setmResult("false");
}
}
}
});

@AuroraStarMoon AuroraStarMoon changed the title JUMP跳转之后List数据清空代码如下 JUMP跳转之后List被置为空 Dec 9, 2020
@kongzue
Copy link
Owner

kongzue commented Dec 12, 2020

您好,JumpParameter是消费型的数据,在您获取后就会被清空。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants