Skip to content

Commit 95b712b

Browse files
committed
see 06/12 log
1 parent 53a5619 commit 95b712b

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

utilcode/src/main/java/com/blankj/utilcode/util/SnackbarUtils.java

+3-4
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
import android.support.annotation.IntDef;
66
import android.support.annotation.LayoutRes;
77
import android.support.annotation.Nullable;
8-
import android.support.design.widget.BaseTransientBottomBar;
98
import android.support.design.widget.Snackbar;
109
import android.text.SpannableString;
1110
import android.text.Spanned;
@@ -30,11 +29,11 @@ public final class SnackbarUtils {
3029

3130
private static final int DEFAULT_COLOR = 0x12000000;
3231

33-
public static final int LENGTH_INDEFINITE = BaseTransientBottomBar.LENGTH_INDEFINITE;
32+
public static final int LENGTH_INDEFINITE = -2;
3433

35-
public static final int LENGTH_SHORT = BaseTransientBottomBar.LENGTH_SHORT;
34+
public static final int LENGTH_SHORT = -1;
3635

37-
public static final int LENGTH_LONG = BaseTransientBottomBar.LENGTH_LONG;
36+
public static final int LENGTH_LONG = 0;
3837

3938
@IntDef({LENGTH_INDEFINITE, LENGTH_SHORT, LENGTH_LONG})
4039
@Retention(RetentionPolicy.SOURCE)

0 commit comments

Comments
 (0)