Commit 806179f0 authored by unstablebrainiac's avatar unstablebrainiac

Fix NullPointerException (not tested, couldn't repro)

parent 4ae124bd
......@@ -256,7 +256,7 @@ public class CalendarFragment extends BaseFragment {
@Override
public void onFailure(Call<NewsFeedResponse> call, Throwable t) {
//Network Error
Toast.makeText(getContext(), "Failed to fetch events!", Toast.LENGTH_SHORT).show();
Toast.makeText(getActivity(), "Failed to fetch events!", Toast.LENGTH_SHORT).show();
}
});
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment