Undo behavior workaround because of side effects

pull/178/head
M66B 5 years ago
parent 9044c9488c
commit 384dfc9019

@ -42,12 +42,6 @@ public class BehaviorBottomMargin extends CoordinatorLayout.Behavior<View> {
return (dependency instanceof Snackbar.SnackbarLayout); return (dependency instanceof Snackbar.SnackbarLayout);
} }
@Override
public boolean onLayoutChild(@NonNull CoordinatorLayout parent, @NonNull View child, int layoutDirection) {
setMargin(child, 0);
return super.onLayoutChild(parent, child, layoutDirection);
}
@Override @Override
public boolean onDependentViewChanged(@NonNull CoordinatorLayout parent, @NonNull View child, @NonNull View dependency) { public boolean onDependentViewChanged(@NonNull CoordinatorLayout parent, @NonNull View child, @NonNull View dependency) {
setMargin(child, dependency.getHeight()); setMargin(child, dependency.getHeight());

@ -42,12 +42,6 @@ public class BehaviorBottomPadding extends CoordinatorLayout.Behavior<View> {
return (dependency instanceof Snackbar.SnackbarLayout); return (dependency instanceof Snackbar.SnackbarLayout);
} }
@Override
public boolean onLayoutChild(@NonNull CoordinatorLayout parent, @NonNull View child, int layoutDirection) {
setPadding(child, 0);
return super.onLayoutChild(parent, child, layoutDirection);
}
@Override @Override
public boolean onDependentViewChanged(@NonNull CoordinatorLayout parent, @NonNull View child, @NonNull View dependency) { public boolean onDependentViewChanged(@NonNull CoordinatorLayout parent, @NonNull View child, @NonNull View dependency) {
setPadding(child, dependency.getHeight()); setPadding(child, dependency.getHeight());

Loading…
Cancel
Save