public void onProfileUpdate ( ) { commentAdapter . notifyDataSetChanged ( ) ; if ( commentEntrySlider != null ) { commentEntrySlider . updateContent ( ) ; } if ( notifyBox != null ) { try { UserSettings user = userUtils . getUserSettings ( getContext ( ) ) ; if ( user . isNotificationsEnabled ( ) ) { notifyBox . setVisibility ( View . VISIBLE ) ; } else { notifyBox . setVisibility ( View . GONE ) ; } } catch ( SocializeException e ) { if ( logger != null ) { logger . error ( "Error getting user settings" , e ) ; } else { e . printStackTrace ( ) ; } notifyBox . setVisibility ( View . GONE ) ; } } }
Called when the current logged in user updates their profile .