parent
477ef165fa
commit
aec090b22e
|
@ -164,6 +164,9 @@ public class TriviaGameActivity extends BaseActivity
|
||||||
String msg = getResources().getString(R.string.error_network);
|
String msg = getResources().getString(R.string.error_network);
|
||||||
Fragment errorFragment = TriviaGameErrorFragment.newInstance(msg);
|
Fragment errorFragment = TriviaGameErrorFragment.newInstance(msg);
|
||||||
|
|
||||||
|
// Hide the progress bar.
|
||||||
|
progressBar.setVisibility(View.GONE);
|
||||||
|
|
||||||
FragmentTransaction ft = getSupportFragmentManager().beginTransaction();
|
FragmentTransaction ft = getSupportFragmentManager().beginTransaction();
|
||||||
ft.replace(R.id.frame_trivia_game, errorFragment);
|
ft.replace(R.id.frame_trivia_game, errorFragment);
|
||||||
ft.setTransition(FragmentTransaction.TRANSIT_FRAGMENT_OPEN);
|
ft.setTransition(FragmentTransaction.TRANSIT_FRAGMENT_OPEN);
|
||||||
|
|
Loading…
Reference in New Issue