Skip to content

Commit

Permalink
Merge pull request #195 from bjdupuis/bjdupuis-develop
Browse files Browse the repository at this point in the history
Addresses #116.
  • Loading branch information
keyboardsurfer committed Jun 5, 2015
2 parents 36377b7 + a8b30e8 commit 7806b15
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -293,6 +293,11 @@ private void setActionBarMargin(ViewGroup.MarginLayoutParams params, Activity ac
* removed.
*/
protected void removeCrouton(Crouton crouton) {
// If the crouton hasn't been displayed yet a `Crouton.hide()` will fail to hide
// it since the DISPLAY message might still be in the queue. Remove all messages
// for this crouton.
removeAllMessagesForCrouton(crouton);

View croutonView = crouton.getView();
ViewGroup croutonParentView = (ViewGroup) croutonView.getParent();

Expand Down

0 comments on commit 7806b15

Please sign in to comment.