Custom duration and now dismisses on action click.

Added a method allowing you to set a custom duration.
Switched from OnClickListener to ActionClickListener and thus allowing it to be dismissed when action clicked, you can turn this functionality off with the method shouldDismissOnActionClicked.
You'll now need to use:
.actionListener(new Snackbar.ActionClickListener(){
@Override
public void onActionClicked(){
...
}
});

Hope this helps, cheers.