Skip to content

Commit

Permalink
always check to remove Snackbar from parent
Browse files Browse the repository at this point in the history
  • Loading branch information
William Mora committed Dec 24, 2014
1 parent e757748 commit 7da39d4
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/src/main/java/com/nispok/snackbar/Snackbar.java
Original file line number Diff line number Diff line change
Expand Up @@ -444,6 +444,8 @@ public void show(Activity targetActivity) {

ViewGroup root = (ViewGroup) targetActivity.findViewById(android.R.id.content);

root.removeView(this);

if (isNavigationBarHidden(root)) {
Resources resources = getResources();
int resourceId = resources.getIdentifier("navigation_bar_height", "dimen", "android");
Expand Down

0 comments on commit 7da39d4

Please sign in to comment.