From 5ffc19c23834d76888723bb777e358ff5091d66d Mon Sep 17 00:00:00 2001 From: Damyan Ivanov Date: Wed, 3 Mar 2021 14:35:23 +0200 Subject: [PATCH] parent is guaranteed to be a View here, or null --- app/src/main/java/net/ktnx/mobileledger/ui/FabManager.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/java/net/ktnx/mobileledger/ui/FabManager.java b/app/src/main/java/net/ktnx/mobileledger/ui/FabManager.java index b9165344..76f7e049 100644 --- a/app/src/main/java/net/ktnx/mobileledger/ui/FabManager.java +++ b/app/src/main/java/net/ktnx/mobileledger/ui/FabManager.java @@ -146,7 +146,7 @@ public class FabManager { while (parent != null && !(parent instanceof View)) parent = parent.getParent(); - if (parent instanceof View) { + if (parent != null) { View parentView = (View) parent; int parentHeight = parentView.getHeight(); fabVerticalOffset = parentHeight - top; -- 2.39.5