From: Damyan Ivanov Date: Wed, 3 Mar 2021 12:35:23 +0000 (+0200) Subject: parent is guaranteed to be a View here, or null X-Git-Tag: v0.17.0~49 X-Git-Url: https://git.ktnx.net/?a=commitdiff_plain;h=5ffc19c23834d76888723bb777e358ff5091d66d;p=mobile-ledger.git parent is guaranteed to be a View here, or null --- 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;