Skip to content

Commit

Permalink
Restored EmailListFragment.reloadMsgs().| #793
Browse files Browse the repository at this point in the history
  • Loading branch information
DenBond7 committed Jan 5, 2020
1 parent 17c8c09 commit dca8c67
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -259,7 +259,7 @@ class EmailManagerActivity : BaseEmailListActivity(), NavigationView.OnNavigatio
val fragment = supportFragmentManager
.findFragmentById(R.id.emailListFragment) as EmailListFragment?

//fragment?.reloadMsgs()
fragment?.reloadMsgs()
} else {
if (!TextUtils.isEmpty(signInResult.status.statusMessage)) {
UIUtil.showInfoSnackbar(rootView, signInResult.status.statusMessage!!)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -300,6 +300,13 @@ class EmailListFragment : BaseSyncFragment(), SwipeRefreshLayout.OnRefreshListen
onFolderChanged(deleteAllMsgs = true)
}

/**
* Reload the folder messages.
*/
fun reloadMsgs() {
onFolderChanged(deleteAllMsgs = true)
}

private fun showConnProblemHint() {
showSnackbar(view!!, getString(R.string.can_not_connect_to_the_imap_server), getString(R.string.retry),
Snackbar.LENGTH_LONG, View.OnClickListener { onRefresh() })
Expand Down

0 comments on commit dca8c67

Please sign in to comment.