@Override protected void onActivityResult(int requestCode, int resultCode, Intent data) { super.onActivityResult(requestCode, resultCode, data); CacheBeans beans = GlobalRes.getInstance().getBeans(); if (beans.getCurrentType4Data() != null) { beans.getCurrentType4Data().refreshStar(); adapter.notifyDataSetChanged(); } }
private void startLesson(int position, boolean goOn) { CacheBeans beans = GlobalRes.getInstance().getBeans(); EntityResType4 type4 = adapter.getItem(position); beans.setCurrentType4Data(type4); beans.setCurrentType4Id(type4.getId()); adapter.onSelected(position); Intent i = new Intent(this, AtyType5s.class); i.putExtra("goOn", goOn); startActivityForResult(i, 0); }
public void onRefreshView() { CacheBeans beans = GlobalRes.getInstance().getBeans(); Type5Data type5_1 = beans.getUnlockDatas().getType5s().get(data1.getId()); Type5Data type5_2 = beans.getUnlockDatas().getType5s().get(data2.getId()); Type5Data type5_3 = beans.getUnlockDatas().getType5s().get(data3.getId()); Type5Data type5_4 = beans.getUnlockDatas().getType5s().get(data4.getId()); refreshModule( type5_1, imgLock1, imgStart1, rbStar1, imgModule1, R.drawable.icon_lessontype5_3, R.drawable.icon_lessontype5_3_2, R.drawable.icon_lessontype5_3_3); refreshModule( type5_2, imgLock2, imgStart2, rbStar2, imgModule2, R.drawable.icon_lessontype5_4, R.drawable.icon_lessontype5_4_2, R.drawable.icon_lessontype5_4_3); refreshModule( type5_3, imgLock3, imgStart3, rbStar3, imgModule3, R.drawable.icon_lessontype5_5, R.drawable.icon_lessontype5_5_2, R.drawable.icon_lessontype5_5_3); refreshLine(type5_1, imgLine1); refreshLine(type5_2, imgLine2); refreshLine(type5_3, imgLine3); refreshLine(type5_4, imgLine4); }