Loading app/core/src/main/java/com/fsck/k9/mailstore/LocalFolder.java +0 −38 Original line number Diff line number Diff line Loading @@ -9,7 +9,6 @@ import androidx.annotation.NonNull; import androidx.annotation.Nullable; import com.fsck.k9.Account; import com.fsck.k9.K9; import com.fsck.k9.controller.MessageCounts; import com.fsck.k9.controller.MessageReference; import com.fsck.k9.helper.FileHelper; import com.fsck.k9.helper.Utility; Loading Loading @@ -247,11 +246,6 @@ public class LocalFolder { }); } public MessageCounts getMessageCounts() throws MessagingException { return new MessageCounts(getUnreadMessageCount(), getStarredMessageCount()); } public int getUnreadMessageCount() throws MessagingException { if (databaseId == -1L) { open(); Loading Loading @@ -279,29 +273,6 @@ public class LocalFolder { }); } private int getStarredMessageCount() throws MessagingException { if (databaseId == -1L) { open(); } return this.localStore.getDatabase().execute(false, new DbCallback<Integer>() { @Override public Integer doDbWork(final SQLiteDatabase db) { int starredMessageCount = 0; Cursor cursor = db.query("messages", new String[] { "COUNT(id)" }, "folder_id = ? AND empty = 0 AND deleted = 0 AND flagged = 1", new String[] { Long.toString(databaseId) }, null, null, null); try { if (cursor.moveToFirst()) { starredMessageCount = cursor.getInt(0); } } finally { cursor.close(); } return starredMessageCount; } }); } public int getVisibleLimit() throws MessagingException { open(); Loading Loading @@ -351,25 +322,16 @@ public class LocalFolder { return (FolderClass.INHERITED == syncClass) ? getDisplayClass() : syncClass; } public FolderClass getRawSyncClass() { return syncClass; } public FolderClass getNotifyClass() { return (FolderClass.INHERITED == notifyClass) ? getPushClass() : notifyClass; } public FolderClass getRawNotifyClass() { return notifyClass; } public FolderClass getPushClass() { return (FolderClass.INHERITED == pushClass) ? getSyncClass() : pushClass; } public FolderClass getRawPushClass() { return pushClass; } public void setDisplayClass(FolderClass displayClass) throws MessagingException { this.displayClass = displayClass; Loading Loading
app/core/src/main/java/com/fsck/k9/mailstore/LocalFolder.java +0 −38 Original line number Diff line number Diff line Loading @@ -9,7 +9,6 @@ import androidx.annotation.NonNull; import androidx.annotation.Nullable; import com.fsck.k9.Account; import com.fsck.k9.K9; import com.fsck.k9.controller.MessageCounts; import com.fsck.k9.controller.MessageReference; import com.fsck.k9.helper.FileHelper; import com.fsck.k9.helper.Utility; Loading Loading @@ -247,11 +246,6 @@ public class LocalFolder { }); } public MessageCounts getMessageCounts() throws MessagingException { return new MessageCounts(getUnreadMessageCount(), getStarredMessageCount()); } public int getUnreadMessageCount() throws MessagingException { if (databaseId == -1L) { open(); Loading Loading @@ -279,29 +273,6 @@ public class LocalFolder { }); } private int getStarredMessageCount() throws MessagingException { if (databaseId == -1L) { open(); } return this.localStore.getDatabase().execute(false, new DbCallback<Integer>() { @Override public Integer doDbWork(final SQLiteDatabase db) { int starredMessageCount = 0; Cursor cursor = db.query("messages", new String[] { "COUNT(id)" }, "folder_id = ? AND empty = 0 AND deleted = 0 AND flagged = 1", new String[] { Long.toString(databaseId) }, null, null, null); try { if (cursor.moveToFirst()) { starredMessageCount = cursor.getInt(0); } } finally { cursor.close(); } return starredMessageCount; } }); } public int getVisibleLimit() throws MessagingException { open(); Loading Loading @@ -351,25 +322,16 @@ public class LocalFolder { return (FolderClass.INHERITED == syncClass) ? getDisplayClass() : syncClass; } public FolderClass getRawSyncClass() { return syncClass; } public FolderClass getNotifyClass() { return (FolderClass.INHERITED == notifyClass) ? getPushClass() : notifyClass; } public FolderClass getRawNotifyClass() { return notifyClass; } public FolderClass getPushClass() { return (FolderClass.INHERITED == pushClass) ? getSyncClass() : pushClass; } public FolderClass getRawPushClass() { return pushClass; } public void setDisplayClass(FolderClass displayClass) throws MessagingException { this.displayClass = displayClass; Loading