code: public static void show(@NonNull final Snackbar snackbar, @NonNull final ViewGroup parent,
                              final boolean usePhoneLayout) {
          MAIN_THREAD.post(new Runnable() {
              @Override
              public void run() {
                  Snackbar currentSnackbar = getCurrentSnackbar();
                  if (currentSnackbar != null) {
                      if (currentSnackbar.isShowing() && !currentSnackbar.isDimissing()) {
                          currentSnackbar.dismissAnimation(false);
                          currentSnackbar.dismissByReplace();
                          snackbarReference = new WeakReference<>(snackbar);
                          snackbar.showAnimation(false);
                          snackbar.showByReplace(parent, usePhoneLayout);
                          return;
                      }
                      currentSnackbar.dismiss();
                  }
                  snackbarReference = new WeakReference<>(snackbar);
                  snackbar.show(parent, usePhoneLayout);
              }
          });
      }
docs: Displays a {@link com.nispok.snackbar.Snackbar} in the specified {@link ViewGroup}, dismissing
  the current Snackbar being displayed, if any
  
  @param snackbar       instance of {@link com.nispok.snackbar.Snackbar} to display
  @param parent         parent {@link ViewGroup} to display the Snackbar
  @param usePhoneLayout true: use phone layout, false: use tablet layout