package com.nispok.sample.snackbar.utils;

import android.app.Activity;

import com.nispok.snackbar.Snackbar;

public class SnackbarManager {

    private static SnackbarManager INSTANCE = new SnackbarManager();

    public static SnackbarManager getInstance() {
        return INSTANCE;
    }

    private Snackbar currentSnackbar;

    private SnackbarManager() {
    }

    public void show(Snackbar snackbar, Activity target) {
        if (currentSnackbar != null) {
            currentSnackbar.dismiss();
        }
        currentSnackbar = snackbar;
        currentSnackbar.show(target);
    }
}

@@ -408,25 +408,8 @@
 kbar
-, Activity target
 ) %7B%0A
@@ -565,14 +565,47 @@
 how(
-t
+(Activity) currentSnackb
 ar
+.
 get
+Context()
 );%0A 

Simplify sample project