1
0
Fork 0
mirror of https://github.com/M66B/FairEmail.git synced 2025-01-01 12:44:42 +00:00

Undo behavior workaround because of side effects

This commit is contained in:
M66B 2020-04-06 22:17:55 +02:00
parent 9044c9488c
commit 384dfc9019
2 changed files with 0 additions and 12 deletions

View file

@ -42,12 +42,6 @@ public class BehaviorBottomMargin extends CoordinatorLayout.Behavior<View> {
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
public boolean onDependentViewChanged(@NonNull CoordinatorLayout parent, @NonNull View child, @NonNull View dependency) {
setMargin(child, dependency.getHeight());

View file

@ -42,12 +42,6 @@ public class BehaviorBottomPadding extends CoordinatorLayout.Behavior<View> {
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
public boolean onDependentViewChanged(@NonNull CoordinatorLayout parent, @NonNull View child, @NonNull View dependency) {
setPadding(child, dependency.getHeight());