]> git.ktnx.net Git - mobile-ledger.git/commitdiff
parent is guaranteed to be a View here, or null
authorDamyan Ivanov <dam+mobileledger@ktnx.net>
Wed, 3 Mar 2021 12:35:23 +0000 (14:35 +0200)
committerDamyan Ivanov <dam+mobileledger@ktnx.net>
Wed, 3 Mar 2021 12:35:23 +0000 (14:35 +0200)
app/src/main/java/net/ktnx/mobileledger/ui/FabManager.java

index b9165344ad062dc238e3ee3bbec0dc45a2a89db7..76f7e049be00cb4b935503078125fed13153c50b 100644 (file)
@@ -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;