|
@ -38,7 +38,6 @@ public class ViewModelBrowse extends ViewModel { |
|
|
private Message[] imessages = null; |
|
|
private Message[] imessages = null; |
|
|
|
|
|
|
|
|
private int index = -1; |
|
|
private int index = -1; |
|
|
private int loaded = 0; |
|
|
|
|
|
|
|
|
|
|
|
void set(Context context, long folder, String search, int pageSize) { |
|
|
void set(Context context, long folder, String search, int pageSize) { |
|
|
this.context = context; |
|
|
this.context = context; |
|
@ -47,7 +46,6 @@ public class ViewModelBrowse extends ViewModel { |
|
|
this.pageSize = pageSize; |
|
|
this.pageSize = pageSize; |
|
|
|
|
|
|
|
|
this.index = -1; |
|
|
this.index = -1; |
|
|
this.loaded = 0; |
|
|
|
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
@Override |
|
|
@Override |
|
@ -62,10 +60,6 @@ public class ViewModelBrowse extends ViewModel { |
|
|
return context; |
|
|
return context; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
int getLoaded() { |
|
|
|
|
|
return loaded; |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
void load() throws MessagingException, FolderClosedIOException { |
|
|
void load() throws MessagingException, FolderClosedIOException { |
|
|
DB db = DB.getInstance(context); |
|
|
DB db = DB.getInstance(context); |
|
|
EntityFolder folder = db.folder().getFolder(fid); |
|
|
EntityFolder folder = db.folder().getFolder(fid); |
|
@ -135,7 +129,6 @@ public class ViewModelBrowse extends ViewModel { |
|
|
if (message == null) { |
|
|
if (message == null) { |
|
|
ServiceSynchronize.synchronizeMessage(context, folder, ifolder, (IMAPMessage) isub[j], search != null); |
|
|
ServiceSynchronize.synchronizeMessage(context, folder, ifolder, (IMAPMessage) isub[j], search != null); |
|
|
count++; |
|
|
count++; |
|
|
loaded++; |
|
|
|
|
|
} |
|
|
} |
|
|
} catch (MessageRemovedException ex) { |
|
|
} catch (MessageRemovedException ex) { |
|
|
Log.w(Helper.TAG, "Boundary " + ex + "\n" + Log.getStackTraceString(ex)); |
|
|
Log.w(Helper.TAG, "Boundary " + ex + "\n" + Log.getStackTraceString(ex)); |
|
|