Skip to content

Commit

Permalink
Fix always showing modules fragments on refresh
Browse files Browse the repository at this point in the history
  • Loading branch information
vladholubiev committed Feb 9, 2015
1 parent 9322793 commit 3b374d8
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@
import ua.samosfator.moduleok.R;
import ua.samosfator.moduleok.StudentKeeper;
import ua.samosfator.moduleok.event.RefreshEndEvent;
import ua.samosfator.moduleok.fragment.LoginFragment;
import ua.samosfator.moduleok.parser.Semester;
import ua.samosfator.moduleok.parser.Subject;

Expand Down Expand Up @@ -85,7 +84,9 @@ private static void openLoginFragment() {

@SuppressWarnings("UnusedDeclaration")
public void onEvent(RefreshEndEvent event) {
FragmentUtils.showFragment(fragmentManager.beginTransaction(), FragmentsKeeper.getModules());
if (FragmentsKeeper.getModules().isVisible()) {
FragmentUtils.showFragment(fragmentManager.beginTransaction(), FragmentsKeeper.getModules());
}
}

@Override
Expand Down

0 comments on commit 3b374d8

Please sign in to comment.