From 922da77a33c03af6c87ddddee8811d30675ce8a0 Mon Sep 17 00:00:00 2001 From: M66B Date: Wed, 4 Dec 2019 13:45:58 +0100 Subject: [PATCH] Fixed behavior --- app/src/main/java/eu/faircode/email/BehaviorBottomMargin.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/src/main/java/eu/faircode/email/BehaviorBottomMargin.java b/app/src/main/java/eu/faircode/email/BehaviorBottomMargin.java index 067fd93ef8..2e121c6b76 100644 --- a/app/src/main/java/eu/faircode/email/BehaviorBottomMargin.java +++ b/app/src/main/java/eu/faircode/email/BehaviorBottomMargin.java @@ -46,6 +46,7 @@ public class BehaviorBottomMargin extends CoordinatorLayout.Behavior { public boolean onDependentViewChanged(@NonNull CoordinatorLayout parent, @NonNull View child, @NonNull View dependency) { CoordinatorLayout.LayoutParams lparam = (CoordinatorLayout.LayoutParams) child.getLayoutParams(); lparam.setMargins(0, 0, 0, dependency.getHeight()); + child.setLayoutParams(lparam); return true; } @@ -53,5 +54,6 @@ public class BehaviorBottomMargin extends CoordinatorLayout.Behavior { public void onDependentViewRemoved(CoordinatorLayout parent, View child, View dependency) { CoordinatorLayout.LayoutParams lparam = (CoordinatorLayout.LayoutParams) child.getLayoutParams(); lparam.setMargins(0, 0, 0, 0); + child.setLayoutParams(lparam); } }