From 384dfc90196c62248feca106d201a5ba751b8b13 Mon Sep 17 00:00:00 2001 From: M66B Date: Mon, 6 Apr 2020 22:17:55 +0200 Subject: [PATCH] Undo behavior workaround because of side effects --- .../main/java/eu/faircode/email/BehaviorBottomMargin.java | 6 ------ .../main/java/eu/faircode/email/BehaviorBottomPadding.java | 6 ------ 2 files changed, 12 deletions(-) diff --git a/app/src/main/java/eu/faircode/email/BehaviorBottomMargin.java b/app/src/main/java/eu/faircode/email/BehaviorBottomMargin.java index 81eb84ab90..42648cc691 100644 --- a/app/src/main/java/eu/faircode/email/BehaviorBottomMargin.java +++ b/app/src/main/java/eu/faircode/email/BehaviorBottomMargin.java @@ -42,12 +42,6 @@ public class BehaviorBottomMargin extends CoordinatorLayout.Behavior { 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()); diff --git a/app/src/main/java/eu/faircode/email/BehaviorBottomPadding.java b/app/src/main/java/eu/faircode/email/BehaviorBottomPadding.java index 5ea0a4aa0b..dd68ea5a6a 100644 --- a/app/src/main/java/eu/faircode/email/BehaviorBottomPadding.java +++ b/app/src/main/java/eu/faircode/email/BehaviorBottomPadding.java @@ -42,12 +42,6 @@ public class BehaviorBottomPadding extends CoordinatorLayout.Behavior { 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());