title: Snackbar: how to identify which snackbar is shown
body: <p>I have a recyclerview which implements the <code>swipetorefresh</code> layout - if you swipe your finger down the list, it will load newer posts. It also has a <code>onloadmorelistener</code> which serves to paginate my recyclerview - if you swipe your finger up the recyclerview, it will load older posts. </p>
  
  <p>I'm trying to build in a <code>snackbar</code> notification where if the user is offline and he tries to complete some type of network activity, like loading old or new posts, the snackbar will appear telling him that there is "No internet".</p>
  
  <p>In the case where there is no internet and the user swipes up and swipes down on the recyclerview, two snackbar notification displaying the same "No internet" message is shown. I actually just want one to be shown instead.</p>
  
  <p>Therefore, I'm looking for some unique way to identify the text which is shown in the snackbar so that if the text is the same in both snackbar, only one snackbar gets displayed but there is no <code>getText()</code> method in snackbar and there is only <code>setText()</code>: <a href="http://developer.android.com/intl/es/reference/android/support/design/widget/Snackbar.html" rel="noreferrer">http://developer.android.com/intl/es/reference/android/support/design/widget/Snackbar.html</a></p>
  
  <p>I also see that there are callback methods: <a href="http://developer.android.com/intl/es/reference/android/support/design/widget/Snackbar.Callback.html" rel="noreferrer">http://developer.android.com/intl/es/reference/android/support/design/widget/Snackbar.Callback.html</a> but none of which seems to help in my scenario.</p>
  
  <p>I wish there was a unique flag that I could have given to the snackbar when it was created for identification purposes but the <code>Snackbar.make</code> method doesn't allow so.</p>
  
  <p>Has anyone been successful in solving an issue similar to this?</p>