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

Commit 5b97a6ec authored by Fahim Salam Chowdhury's avatar Fahim Salam Chowdhury 👽 Committed by Vincent Bourgmayer
Browse files

Apply 1 suggestion(s) to 1 file(s)

parent 2a42b47c
Loading
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -322,9 +322,8 @@ public final class DbHelper extends SQLiteOpenHelper {
     * @return true if there is at least one file to download
     */
    public static boolean syncedFolderHasContentToDownload(int syncedFolderId, Context context) {
        final SyncedFileStateDAO dao;
        try {
            dao = openSyncedFileStateDAO(context, false);
            SyncedFileStateDAO dao = openSyncedFileStateDAO(context, false);
            return dao.countFileWaitingForDownloadForSyncedFolder(syncedFolderId) > 0;
        } catch (SQLiteException e) {
            Log.e(TAG, "SQLite error", e);