Buggy code:
public final class WebViewActivity extends BasicActivity implements DownloadListener { private static final int LAYOUT = layout . activity_webview ; private static final int MENU = menu . webview ; private static final String EXTRAS_URL = "com.hpush.app.activities.EXTRAS.Url" ; private static final String EXTRAS_MSG = "com.hpush.app.activities.EXTRAS.Msg" ; private WebViewEx mWebView ; private Toolbar mToolbar ; private SwipeRefreshLayout mRefreshLayout ; private Message msg ; public static void showInstance ( Activity cxt , String url , View openWevViewV , Message msg ) { } @ SuppressLint ( "SetJavaScriptEnabled" ) @ Override protected void onCreate ( Bundle savedInstanceState ) { } @ Override protected void onNewIntent ( Intent intent ) { } private void handleIntent ( ) { } @ Override public boolean onCreateOptionsMenu ( final Menu menu ) { } @ Override public boolean onPrepareOptionsMenu ( Menu menu ) { } @ Override public boolean onOptionsItemSelected ( MenuItem item ) { String name ; String caption ; String desc ; String link ; switch ( item . getItemId ( ) ) { case id . home : if ( ( VERSION . SDK_INT ) >= ( VERSION_CODES . LOLLIPOP ) ) { finishAfterTransition ( ) ; } else { finish ( ) ; } break ; case R . id . action_search : onSearchRequested ( ) ; break ; case R . id . action_forward : if ( mWebView . canGoForward ( ) ) { mWebView . goForward ( ) ; } break ; case R . id . action_backward : if ( mWebView . canGoBack ( ) ) { mWebView . goBack ( ) ; } break ; case R . id . action_item_comment : WebViewActivity . showInstance ( this , ( ( Prefs . getInstance ( getApplication ( ) ) . getHackerNewsCommentsUrl ( ) ) + ( msg . getId ( ) ) ) , null , msg ) ; break ; case R . id . action_item_bookmark : EventBus . getDefault ( ) . postSticky ( new BookmarkMessageEvent ( new com . hpush . data . MessageListItem ( msg ) ) ) ; <START_BUG> Snackbar . make ( findViewById ( list ) , lbl_has_been_bookmarked , LENGTH_LONG ) . show ( ) ; <END_BUG> item . setVisible ( false ) ; break ; case R . id . action_facebook : if ( ( msg ) == null ) { name = getString ( lbl_share_item_title ) ; caption = String . format ( getString ( lbl_share_app_title ) , getString ( lbl_share_item_title ) ) ; desc = getString ( lbl_share_app_content ) ; link = getString ( lbl_app_link ) ; Bundle postParams = new Bundle ( ) ; final WebDialog fbDlg = new WebDialog . FeedDialogBuilder ( this , getString ( R . string . applicationId ) , postParams ) . setCaption ( caption ) . setName ( name ) . setDescription ( desc ) . setLink ( link ) . build ( ) ; fbDlg . setOnCompleteListener ( new OnCompleteListener ( ) { @ Override public void onComplete ( Bundle bundle , FacebookException e ) { fbDlg . dismiss ( ) ; } } ) ; fbDlg . show ( ) ; } else { if ( TextUtils . isEmpty ( msg . getUrl ( ) ) ) { msg . setUrl ( ( ( Prefs . getInstance ( getApplication ( ) ) . getHackerNewsCommentsUrl ( ) ) + ( msg . getId ( ) ) ) ) ; } EventBus . getDefault ( ) . post ( new com . hpush . bus . ShareMessageEvent ( new com . hpush . data . MessageListItem ( msg ) , Type . Facebook ) ) ; } break ; case R . id . action_tweet : break ; } return super . onOptionsItemSelected ( item ) ; } @ Override public void onDownloadStart ( String url , String userAgent , String contentDisposition , String mimetype , long contentLength ) { } private void animToolActionBar ( float value ) { } @ Override public void onBackPressed ( ) { } private void backPressed ( ) { } }

Fix:
Snackbar . make ( mRefreshLayout , lbl_has_been_bookmarked , LENGTH_LONG ) . show ( ) ;