From 479f4ec47e77bce692f3f961a2921abcda0d9bd3 Mon Sep 17 00:00:00 2001 From: dankito Date: Wed, 29 Apr 2020 22:14:25 +0200 Subject: [PATCH] Fixed that also if an account gets added or remove drawer items and selection state gets updated --- .../dankito/banking/fints4java/android/ui/views/DrawerView.kt | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/fints4javaAndroidApp/src/main/java/net/dankito/banking/fints4java/android/ui/views/DrawerView.kt b/fints4javaAndroidApp/src/main/java/net/dankito/banking/fints4java/android/ui/views/DrawerView.kt index 18c2dc00..90eef09d 100644 --- a/fints4javaAndroidApp/src/main/java/net/dankito/banking/fints4java/android/ui/views/DrawerView.kt +++ b/fints4javaAndroidApp/src/main/java/net/dankito/banking/fints4java/android/ui/views/DrawerView.kt @@ -61,6 +61,10 @@ open class DrawerView( activity.runOnUiThread { updateDrawerItems() } } + presenter.addSelectedBankAccountsChangedListener { + activity.runOnUiThread { updateDrawerItems() } + } + updateDrawerItems() }