CustomToast.showErrorToast(this, jsonObject.optString("msg", "成绩解析失败"));
return;
}
totalWeight = jsonObject.optString("total", "unknown");
avggpa = jsonObject.optString("avggpa", "unknown");
<BUG>semesters = setGrade(jsonObject.getJSONArray("gpas"), jsonObject.getJSONArray("courses"));
</BUG>
dualTotalWeight = jsonObject.optString("dualtotal", "unknown");
dualavggpa = jsonObject.optString("dualavggpa", "unknown");
<BUG>dualSemesters = setGrade(jsonObject.getJSONArray("dualgpas"),

jsonObject.getJSONArray("dualcourses"));
</BUG>
setStrings();

CustomToast.showErrorToast(this, jsonObject.optString("msg", "成绩解析失败"));
return;
}
totalWeight = jsonObject.optString("total", "unknown");
avggpa = jsonObject.optString("avggpa", "unknown");
semesters = setGrade(jsonObject.optJSONArray("gpas"), jsonObject.optJSONArray("courses"));
dualTotalWeight = jsonObject.optString("dualtotal", "unknown");
dualavggpa = jsonObject.optString("dualavggpa", "unknown");
dualSemesters = setGrade(jsonObject.optJSONArray("dualgpas"),
jsonObject.optJSONArray("dualcourses"));
setStrings();
