package net.cattaka.android.adaptertoolbox.example.logic;

import android.support.annotation.NonNull;
import android.support.annotation.StringRes;
import android.support.design.widget.Snackbar;
import android.view.View;

/**
 * Created by cattaka on 16/06/05.
 */
public class SnackbarLogic {
    public SnackbarLogic() {
    }

    @NonNull
    public Snackbar make(@NonNull View view, @NonNull CharSequence text, int duration) {
        return Snackbar.make(view, text, duration);
    }

    @NonNull
    public Snackbar make(@NonNull View view, @StringRes int resId, int duration) {
        return Snackbar.make(view, resId, duration);
    }
}

@@ -342,32 +342,33 @@
 %0A    public 
+I
 Snackbar
  make(@NonNu
@@ -347,32 +347,39 @@
 public ISnackbar
+Wrapper
  make(@NonNull V
@@ -439,32 +439,56 @@
 %0A        return 
+new SnackbarWrapperImpl(
 Snackbar.make(vi
@@ -498,32 +498,33 @@
  text, duration)
+)
 ;%0A    %7D%0A%0A    @No
@@ -540,24 +540,25 @@
  public 
+I
 Snackbar
  make(@N
@@ -549,16 +549,23 @@
 Snackbar
+Wrapper
  make(@N
@@ -635,16 +635,40 @@
  return 
+new 
+SnackbarWrapperImpl(
 Snackbar
@@ -695,17 +695,422 @@
 uration)
-;
+);%0A    %7D%0A%0A    /**%0A     * For InstrumentationTest%0A     */%0A    public interface ISnackbarWrapper %7B%0A        void show();%0A    %7D%0A%0A    private static class SnackbarWrapperImpl implements ISnackbarWrapper %7B%0A        private Snackbar orig;%0A%0A        public SnackbarWrapperImpl(Snackbar orig) %7B%0A            this.orig = orig;%0A        %7D%0A%0A        @Override%0A        public void show() %7B%0A            orig.show();%0A        %7D
 %0A    %7D%0A%7D

Tweak SnackbarLogic