Last active
August 10, 2017 07:17
-
-
Save BongJaeChoi/825115f053bf466f47f8f85f8a5e2f1c to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
₩₩₩java | |
if (response.isSuccessful()) { | |
JsonObject success = response.body(); | |
Log.e("success!", success.toString()); | |
new Handler().postDelayed(new Runnable() { | |
@Override | |
public void run() { | |
backFlag = true; | |
progressOFF(); | |
FragmentTransaction ft = getSupportFragmentManager().beginTransaction(); | |
//현재 SelectAnswer 프래그먼트 꺼내기 | |
getSupportFragmentManager().popBackStackImmediate(); | |
Log.e("seeresult item : ", " " + item.toString()); | |
FragmentSeeResult fragment = new FragmentSeeResult(); //갯수는 나중에 달라짐 | |
item.setTotal_count(String.valueOf((Integer.parseInt(item.getTotal_count()) + 1))); | |
fragment.setData(item); | |
ft.replace(R.id.frame_layout, fragment, "FragmentSeeResult"); | |
ft.addToBackStack(fragment.toString()); | |
ft.commitAllowingStateLoss(); | |
//로딩 액티비티 끝내기 post | |
BusProvider.getInstance().post(new PushEvent(true)); | |
} | |
}, 1600); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment