MenuInflater inflater = getMenuInflater();
inflater.inflate(R.menu.unenroll, menu);
super.onCreateOptionsMenu(menu);
return true;
}
<BUG>@Override
public void onEventMainThread(NetworkStateEvent event) {

super.onEventMainThread(event);
if (tabLayout != null) {</BUG>
if (event.isOnline()) {

MenuInflater inflater = getMenuInflater();
inflater.inflate(R.menu.unenroll, menu);
super.onCreateOptionsMenu(menu);
return true;
}
@Override
@SuppressWarnings("unused")
@Subscribe(sticky = true, threadMode = ThreadMode.MAIN)
public void onNetworkEvent(NetworkStateEvent event) {
super.onNetworkEvent(event);
if (tabLayout != null) {
if (event.isOnline()) {
