Fixed downloading wrong messages

This commit is contained in:
M66B 2018-09-17 05:06:38 +00:00
parent 5a657a09f2
commit a241a5d337
1 changed files with 2 additions and 2 deletions

View File

@ -1404,8 +1404,8 @@ public class ServiceSynchronize extends LifecycleService {
for (int j = isub.length - 1; j >= 0; j--) for (int j = isub.length - 1; j >= 0; j--)
try { try {
Log.i(Helper.TAG, folder.name + " download index=" + (from + j) + " id=" + ids[from + j]); Log.i(Helper.TAG, folder.name + " download index=" + (from + j) + " id=" + ids[from + j]);
if (ids[i - j] != null) if (ids[from + j] != null)
downloadMessage(this, folder, ids[i - j], (IMAPMessage) isub[j]); downloadMessage(this, folder, ids[from + j], (IMAPMessage) isub[j]);
} catch (FolderClosedException ex) { } catch (FolderClosedException ex) {
throw ex; throw ex;
} catch (FolderClosedIOException ex) { } catch (FolderClosedIOException ex) {