]> git.ktnx.net Git - mobile-ledger.git/commitdiff
fab is guaranteed to have a value
authorDamyan Ivanov <dam+mobileledger@ktnx.net>
Sat, 5 Jan 2019 13:17:01 +0000 (13:17 +0000)
committerDamyan Ivanov <dam+mobileledger@ktnx.net>
Sat, 5 Jan 2019 13:17:01 +0000 (13:17 +0000)
app/src/main/java/net/ktnx/mobileledger/ui/transaction_list/TransactionListFragment.java

index a15650ae912df4975ffe0d7dadd1651d5c8c3792..3c4bfa9e2a6083204553ef000c3863c158059251 100644 (file)
@@ -141,10 +141,8 @@ public class TransactionListFragment extends MobileLedgerListFragment {
         root.addOnScrollListener(new RecyclerView.OnScrollListener() {
             @Override
             public void onScrolled(@NonNull RecyclerView recyclerView, int dx, int dy) {
-                if (fab != null) {
-                    if (dy < 0) fab.show();
-                    if (dy > 0) fab.hide();
-                }
+                if (dy < 0) fab.show();
+                if (dy > 0) fab.hide();
             }
         });