package me.ykrank.s1next.viewmodel;

import androidx.databinding.ObservableField;
import com.google.android.material.snackbar.Snackbar;
import android.view.View;
import android.widget.TextView;

import me.ykrank.s1next.data.db.dbmodel.BlackList;


public final class BlackListViewModel {

    public final ObservableField<BlackList> blacklist = new ObservableField<>();

    public View.OnClickListener clickSnackbar() {
        return v -> Snackbar.make(v.getRootView(), ((TextView) v).getText(),
                Snackbar.LENGTH_SHORT)
                .show();
    }
}

@@ -30,16 +30,75 @@
 model;%0A%0A
+import android.view.View;%0Aimport android.widget.TextView;%0A%0A
 import a
@@ -134,16 +134,17 @@
 eField;%0A
+%0A
 import c
@@ -193,116 +193,176 @@
 ar;%0A
+%0A
 import 
-android.view.View;%0Aimport android.widget.TextView;%0A%0Aimport me.ykrank.s1next.data.db.dbmodel.BlackList
+me.ykrank.s1next.data.db.dbmodel.BlackList;%0A%0Aimport static com.github.ykrank.androidtools.ui.internal.CoordinatorLayoutAnchorDelegateBaseImpl.SNACK_BAR_MAX_LINE
 ;%0A%0A%0A
@@ -553,16 +553,50 @@
 urn v -%3E
+ %7B%0A            Snackbar snackbar =
  Snackba
@@ -648,71 +648,238 @@
 t(),
-%0A                Snackbar.LENGTH_SHORT)%0A                .show()
+ Snackbar.LENGTH_SHORT);%0A            TextView textView = snackbar.getView().findViewById(com.google.android.material.R.id.snackbar_text);%0A            textView.setMaxLines(SNACK_BAR_MAX_LINE);%0A            snackbar.show();%0A        %7D
 ;%0A  

Change snackbar max line