UPDATE: Minor tweaks.

This commit is contained in:
Oasis 2017-08-11 12:13:51 +08:00
parent 2872e2df07
commit 79f9ab13d0
2 changed files with 3 additions and 3 deletions

View File

@ -30,7 +30,7 @@ public class BottomSheetBindingAdapter {
}
@BindingAdapter("behavior_bottomSheetCallback")
public static void bindBottomSheetStateChange(final View view, final BottomSheetCallback callback) {
public static void bindBottomSheetCallback(final View view, final BottomSheetCallback callback) {
final BottomSheetBehavior<View> behavior = BottomSheetBehavior.from(view);
if (behavior == null) throw new IllegalArgumentException(view + " has no BottomSheetBehavior");
behavior.setBottomSheetCallback(callback);

View File

@ -16,13 +16,13 @@ public class Snackbars {
private static final int KMaxLines = 3;
@CheckResult public static Snackbar make(final View coordinator, final int text_res, final Additional... additional) {
@SuppressWarnings("ResourceType") final Snackbar snackbar = Snackbar.make(coordinator, text_res, DEFAULT_DURATION);
final Snackbar snackbar = Snackbar.make(coordinator, text_res, DEFAULT_DURATION);
for (final Additional add : additional) if (add != null) add.invoke(snackbar);
return tweak(snackbar);
}
@CheckResult public static Snackbar make(final View coordinator, final CharSequence text, final Additional... additional) {
@SuppressWarnings("ResourceType") final Snackbar snackbar = Snackbar.make(coordinator, text, DEFAULT_DURATION);
final Snackbar snackbar = Snackbar.make(coordinator, text, DEFAULT_DURATION);
for (final Additional add : additional) if (add != null) add.invoke(snackbar);
return tweak(snackbar);
}