Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit dc785a8e authored by cketti's avatar cketti
Browse files

Fix error handling when refreshing the folder list fails

parent 87132562
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -477,10 +477,10 @@ public class MessagingController {
                l.listFoldersFinished(account);
            }
        } catch (Exception e) {
            Timber.e(e);
            for (MessagingListener l : getListeners(listener)) {
                l.listFoldersFailed(account, "");
            }
            Timber.e(e);
        } finally {
            if (localFolders != null) {
                for (Folder localFolder : localFolders) {
+7 −1
Original line number Diff line number Diff line
@@ -642,7 +642,13 @@ public class FolderList extends K9ListActivity {
            public void listFoldersFailed(Account account, String message) {
                if (account.equals(FolderList.this.account)) {
                    handler.progress(false);
                    runOnUiThread(new Runnable() {
                        @Override
                        public void run() {
                            Toast.makeText(context, R.string.fetching_folders_failed, Toast.LENGTH_SHORT).show();

                        }
                    });
                }
                super.listFoldersFailed(account, message);
            }