mirror of https://github.com/M66B/FairEmail.git
Fixed bottom behaviors
This commit is contained in:
parent
ff5ec9eb1f
commit
8d3c057fea
|
@ -44,7 +44,7 @@ public class BehaviorBottomMargin extends CoordinatorLayout.Behavior<View> {
|
|||
|
||||
@Override
|
||||
public boolean onDependentViewChanged(@NonNull CoordinatorLayout parent, @NonNull View child, @NonNull View dependency) {
|
||||
setMargin(child, dependency.getHeight());
|
||||
setMargin(child, dependency.isAttachedToWindow() ? dependency.getHeight() : 0);
|
||||
return true;
|
||||
}
|
||||
|
||||
|
|
|
@ -44,7 +44,7 @@ public class BehaviorBottomPadding extends CoordinatorLayout.Behavior<View> {
|
|||
|
||||
@Override
|
||||
public boolean onDependentViewChanged(@NonNull CoordinatorLayout parent, @NonNull View child, @NonNull View dependency) {
|
||||
setPadding(child, dependency.getHeight());
|
||||
setPadding(child, dependency.isAttachedToWindow() ? dependency.getHeight() : 0);
|
||||
return true;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue