From 94e4c7b54228635f8e6b6305ecacbead6b5667dd Mon Sep 17 00:00:00 2001 From: dankito Date: Thu, 19 Nov 2020 22:17:31 +0100 Subject: [PATCH] Removed mnitmBalance from toolbar. Makes view much clearer and balance is also displayed in line below --- .../net/dankito/banking/ui/android/home/HomeFragment.kt | 7 ------- ui/BankingAndroidApp/src/main/res/menu/menu_main.xml | 7 ------- 2 files changed, 14 deletions(-) diff --git a/ui/BankingAndroidApp/src/main/java/net/dankito/banking/ui/android/home/HomeFragment.kt b/ui/BankingAndroidApp/src/main/java/net/dankito/banking/ui/android/home/HomeFragment.kt index 5ad2332b..b7123aa7 100644 --- a/ui/BankingAndroidApp/src/main/java/net/dankito/banking/ui/android/home/HomeFragment.kt +++ b/ui/BankingAndroidApp/src/main/java/net/dankito/banking/ui/android/home/HomeFragment.kt @@ -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) diff --git a/ui/BankingAndroidApp/src/main/res/menu/menu_main.xml b/ui/BankingAndroidApp/src/main/res/menu/menu_main.xml index a2bd054d..d2854aba 100644 --- a/ui/BankingAndroidApp/src/main/res/menu/menu_main.xml +++ b/ui/BankingAndroidApp/src/main/res/menu/menu_main.xml @@ -20,11 +20,4 @@ android:visible="false" /> - -