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