From: Damyan Ivanov Date: Mon, 31 Dec 2018 19:05:18 +0000 (+0000) Subject: show new transaction fab when fragment is changed X-Git-Tag: v0.3~153 X-Git-Url: https://git.ktnx.net/?a=commitdiff_plain;h=22200a5db9403100a6c9ed6d81fac75adb14a574;p=mobile-ledger.git show new transaction fab when fragment is changed --- diff --git a/app/src/main/java/net/ktnx/mobileledger/ui/account_summary/AccountSummaryFragment.java b/app/src/main/java/net/ktnx/mobileledger/ui/account_summary/AccountSummaryFragment.java index 3a09f2bb..7ea680f5 100644 --- a/app/src/main/java/net/ktnx/mobileledger/ui/account_summary/AccountSummaryFragment.java +++ b/app/src/main/java/net/ktnx/mobileledger/ui/account_summary/AccountSummaryFragment.java @@ -132,6 +132,7 @@ public class AccountSummaryFragment extends Fragment { } })); + fab.show(); root.addOnScrollListener(new RecyclerView.OnScrollListener() { @Override public void onScrolled(@NonNull RecyclerView recyclerView, int dx, int dy) { 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 7c7756b6..45e6767b 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 @@ -138,6 +138,7 @@ public class TransactionListFragment extends Fragment { RecyclerView root = mActivity.findViewById(R.id.transaction_root); root.setAdapter(modelAdapter); + fab.show(); root.addOnScrollListener(new RecyclerView.OnScrollListener() { @Override public void onScrolled(@NonNull RecyclerView recyclerView, int dx, int dy) {