Buggy code:
public abstract class CommunicationModeManager { private static final String MANAGE_NOTIFICATION_TAG = "MANAGE_NOTIFICATION_TAG" ; private static final String EXTRA_OPENING_VIDEO_URL = "opening_video_url" ; private final Bus mBus ; protected final CommunicationModeManager . Delegate mActivityDelegate ; protected final UserManager mUserManager ; protected final CommunicationActivityManager mCommunicationActivityManager ; protected CharSequence mOriginalTitle ; protected CharSequence mTitle ; private String mOpeningVideoUrl ; private boolean mIsRegisteredToBus ; protected boolean mIsActive ; public CommunicationModeManager ( Bus bus , CommunicationModeManager . Delegate delegate , UserManager userManager , CommunicationActivityManager communicationActivityManager ) { } protected void onCurrentCommunicationChanged ( CurrentCommunicationEvent event ) { switch ( event . getStatus ( ) ) { case REMOVED : case LOADING : mActivityDelegate . setContentShown ( false ) ; break ; <START_BUG> case LOADED : <END_BUG> mActivityDelegate . setContentShown ( true ) ; break ; } } public abstract void logout ( ) { } public abstract void reloadCurrentBox ( ) { } public abstract ActionBarDrawerToggle getDrawerToggleListener ( ) { } public abstract int getResourceStringNoCommunicationBox ( ) { } public boolean isCommunicationBoxDrawerOpening ( ) { } public boolean onCreateOptionsMenu ( Menu menu ) { } public boolean onPrepareOptionsMenu ( Menu menu ) { } public boolean onOptionsItemSelected ( MenuItem item ) { } public abstract boolean isSecondaryDrawerOpening ( ) { } public abstract boolean isInCurrentCommunicationBox ( Message message ) { } public boolean processMessageNotInCurrentCommunicationBox ( Message message ) { } protected boolean updateChatBoxUnreadCountInDB ( int chatBoxId , int unreadCount ) { } protected boolean updateConversationUnreadCount ( String conversationId , int unreadCount ) { } public void onNewIntent ( Intent intent ) { } public abstract void processMessageInCurrentCommunicationBox ( Message message ) { } public static interface Delegate { public static final String EXTRA_CHAT_BOX_ID = "chat_box_id" ; public static final int REQUEST_SEARCH_CHAT_BOX = 2 ; public static final int REQUEST_CREATE_CHAT_BOX = 3 ; public void handle ( Exception exception , int errorMessageResId ) { } public BaseABFragmentActivity getActivity ( ) { } public CommunicationMessagesFragment getCommunicationMessagesFragment ( ) { } public void setProgressText ( int resId , boolean showProgressBar ) { } public void setContentShown ( boolean show ) { } public DrawerLayout getDrawerLayout ( ) { } public void ensureWebViewAndSubscribeToChannels ( ) { } } public abstract void onPostResume ( ) { } public abstract void onDestroy ( ) { } protected abstract NotificationFragment getNotificationSettingFragment ( ) { } public void onCreate ( Bundle savedInstanceState ) { } protected void invalidateOptionsMenu ( ) { } public void onActivityResult ( int requestCode , int resultCode , Intent data ) { } public void onResume ( ) { } public void onPause ( ) { } public void onSaveInstanceState ( Bundle outState ) { } public void activate ( ) { } public void deactivate ( ) { } protected String getString ( int id ) { } protected void setTitle ( String title ) { } protected void setSubTitle ( String subTitle ) { } public Map < String , String > getEmoticons ( ) { } public void openCommunicationBoxDrawer ( ) { } protected abstract int getCommunicationBoxDrawerGravity ( ) { } private void registerToBus ( ) { } private void unregisterToBus ( ) { } public void subscribeToChannels ( WebView mWebView ) { } private void subscribeToChatBoxChannels ( WebView mWebView ) { } public void unsubscribeToChannels ( WebView mWebView ) { } private void unsubscribeToChatBoxChannels ( WebView mWebView ) { } private void unsubscribeToConversationChannels ( WebView mWebView ) { } private void subscribeToConversationChannels ( WebView mWebView ) { } private void manageNotification ( ) { } private ArrayList < String > getAllFayeChannels ( ) { } }

Fix:
case UI_LOADED :