class SecuredFragment extends Fragment {

    @Override
    public void onResume() {
        super.onResume();
        if (context().IsUserLoggedOut()) {
            DrishtiApplication application = (DrishtiApplication) this.getActivity()
                    .getApplication();
            application.logoutCurrentUser();
            return;
        }

        onResumption();
        isPaused = false;
    }

}