mirror of
https://github.com/oasisfeng/deagle.git
synced 2025-01-09 04:10:03 +08:00
UPDATE: Minor tweaks.
This commit is contained in:
parent
2872e2df07
commit
79f9ab13d0
@ -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);
|
||||
|
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user