From: Damyan Ivanov Date: Sat, 5 Jan 2019 13:17:01 +0000 (+0000) Subject: fab is guaranteed to have a value X-Git-Tag: v0.3~112 X-Git-Url: https://git.ktnx.net/?a=commitdiff_plain;h=faa6adf8171d31e281351464eea44e5606ef3d6c;p=mobile-ledger.git fab is guaranteed to have a value --- diff --git a/app/src/main/java/net/ktnx/mobileledger/ui/transaction_list/TransactionListFragment.java b/app/src/main/java/net/ktnx/mobileledger/ui/transaction_list/TransactionListFragment.java index a15650ae..3c4bfa9e 100644 --- a/app/src/main/java/net/ktnx/mobileledger/ui/transaction_list/TransactionListFragment.java +++ b/app/src/main/java/net/ktnx/mobileledger/ui/transaction_list/TransactionListFragment.java @@ -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(); } });