Removed mnitmBalance from toolbar. Makes view much clearer and balance is also displayed in line below
This commit is contained in:
parent
0beeaa485d
commit
94e4c7b542
|
@ -43,8 +43,6 @@ class HomeFragment : Fragment() {
|
|||
}
|
||||
|
||||
|
||||
private lateinit var mnitmBalance: MenuItem
|
||||
|
||||
private lateinit var mnitmSearchTransactions: MenuItem
|
||||
|
||||
private lateinit var mnitmUpdateTransactions: MenuItem
|
||||
|
@ -112,8 +110,6 @@ class HomeFragment : Fragment() {
|
|||
override fun onCreateOptionsMenu(menu: Menu, inflater: MenuInflater) {
|
||||
super.onCreateOptionsMenu(menu, inflater)
|
||||
|
||||
mnitmBalance = menu.findItem(R.id.mnitmBalance)
|
||||
|
||||
mnitmSearchTransactions = menu.findItem(R.id.mnitmSearchTransactions)
|
||||
mnitmUpdateTransactions = menu.findItem(R.id.mnitmUpdateTransactions)
|
||||
|
||||
|
@ -259,9 +255,6 @@ class HomeFragment : Fragment() {
|
|||
|
||||
transactionAdapter.items = presenter.searchSelectedAccountTransactions(appliedTransactionsFilter)
|
||||
|
||||
mnitmBalance.title = presenter.formatAmount(presenter.balanceOfSelectedAccounts)
|
||||
mnitmBalance.isVisible = presenter.doSelectedAccountsSupportRetrievingBalance
|
||||
|
||||
lytTransactionsSummary.setVisibility(presenter.doSelectedAccountsSupportRetrievingBalance)
|
||||
|
||||
txtCountTransactions.text = context?.getString(R.string.fragment_home_count_transactions, transactionAdapter.items.size)
|
||||
|
|
|
@ -20,11 +20,4 @@
|
|||
android:visible="false"
|
||||
/>
|
||||
|
||||
<item android:id="@+id/mnitmBalance"
|
||||
android:title=""
|
||||
app:showAsAction="always"
|
||||
android:orderInCategory="500"
|
||||
android:visible="false"
|
||||
/>
|
||||
|
||||
</menu>
|
||||
|
|
Loading…
Reference in New Issue