Loading app/ui/legacy/src/main/java/com/fsck/k9/ui/K9Drawer.kt +9 −7 Original line number Diff line number Diff line Loading @@ -146,12 +146,10 @@ class K9Drawer(private val parent: MessageList, savedInstanceState: Bundle?) : K accountsViewModel.displayAccountsLiveData.observeNotNull(parent) { accounts -> run { if (accounts != displayAccounts) { displayAccounts = accounts setAccounts(accounts) } } } foldersViewModel.getFolderListLiveData().observe(parent) { folderList -> setUserFolders(folderList) Loading Loading @@ -278,8 +276,12 @@ class K9Drawer(private val parent: MessageList, savedInstanceState: Bundle?) : K headerView.clear() headerView.addProfiles(*accountItems) newActiveProfile?.let { profile -> headerView.activeProfile = profile newActiveProfile ?.takeIf { it != headerView.activeProfile }?.let { headerView.activeProfile = it headerView.updateHeaderAndList() } if (oldSelectedBackgroundColor != selectedBackgroundColor) { Loading Loading
app/ui/legacy/src/main/java/com/fsck/k9/ui/K9Drawer.kt +9 −7 Original line number Diff line number Diff line Loading @@ -146,12 +146,10 @@ class K9Drawer(private val parent: MessageList, savedInstanceState: Bundle?) : K accountsViewModel.displayAccountsLiveData.observeNotNull(parent) { accounts -> run { if (accounts != displayAccounts) { displayAccounts = accounts setAccounts(accounts) } } } foldersViewModel.getFolderListLiveData().observe(parent) { folderList -> setUserFolders(folderList) Loading Loading @@ -278,8 +276,12 @@ class K9Drawer(private val parent: MessageList, savedInstanceState: Bundle?) : K headerView.clear() headerView.addProfiles(*accountItems) newActiveProfile?.let { profile -> headerView.activeProfile = profile newActiveProfile ?.takeIf { it != headerView.activeProfile }?.let { headerView.activeProfile = it headerView.updateHeaderAndList() } if (oldSelectedBackgroundColor != selectedBackgroundColor) { Loading