diff --git a/Kiwix-iOS/Controller/Library/DownloadTasksController.swift b/Kiwix-iOS/Controller/Library/DownloadTasksController.swift
index 8cb5cc70..af36a1e6 100644
--- a/Kiwix-iOS/Controller/Library/DownloadTasksController.swift
+++ b/Kiwix-iOS/Controller/Library/DownloadTasksController.swift
@@ -28,11 +28,14 @@ class DownloadTasksController: UIViewController, UITableViewDelegate, UITableVie
override func viewDidLoad() {
super.viewDidLoad()
- tableView.emptyDataSetSource = self
- tableView.emptyDataSetDelegate = self
tableView.delegate = self
tableView.dataSource = self
tableView.tableFooterView = UIView()
+ tableView.estimatedRowHeight = 90.0
+ tableView.rowHeight = UITableViewAutomaticDimension
+
+ tableView.emptyDataSetSource = self
+ tableView.emptyDataSetDelegate = self
}
override func viewWillAppear(animated: Bool) {
diff --git a/Kiwix-iOS/Info.plist b/Kiwix-iOS/Info.plist
index 2dd67b88..76d240d9 100644
--- a/Kiwix-iOS/Info.plist
+++ b/Kiwix-iOS/Info.plist
@@ -49,7 +49,7 @@
CFBundleVersion
- 1.7.1637
+ 1.7.1643
ITSAppUsesNonExemptEncryption
LSRequiresIPhoneOS
diff --git a/Kiwix-iOS/Storyboard/Library.storyboard b/Kiwix-iOS/Storyboard/Library.storyboard
index 8ee3be3a..2bee82b5 100644
--- a/Kiwix-iOS/Storyboard/Library.storyboard
+++ b/Kiwix-iOS/Storyboard/Library.storyboard
@@ -11,7 +11,6 @@
-
@@ -112,6 +111,7 @@
+
@@ -388,7 +388,7 @@
-
+
@@ -714,6 +714,6 @@
-
+
diff --git a/Kiwix-iOSWidgets/Bookmarks/Info.plist b/Kiwix-iOSWidgets/Bookmarks/Info.plist
index 1fa898ab..4217941a 100644
--- a/Kiwix-iOSWidgets/Bookmarks/Info.plist
+++ b/Kiwix-iOSWidgets/Bookmarks/Info.plist
@@ -21,7 +21,7 @@
CFBundleSignature
????
CFBundleVersion
- 1.7.2076
+ 1.7.2083
NSExtension
NSExtensionMainStoryboard
diff --git a/Kiwix/Network/Network.swift b/Kiwix/Network/Network.swift
index cb772a21..990eeb78 100644
--- a/Kiwix/Network/Network.swift
+++ b/Kiwix/Network/Network.swift
@@ -52,11 +52,11 @@ class Network: NSObject, NSURLSessionDelegate, NSURLSessionTaskDelegate, NSURLSe
func URLSession(session: NSURLSession, task: NSURLSessionTask, didCompleteWithError error: NSError?) {
guard let error = error, let bookID = task.taskDescription else {return}
self.context.performBlockAndWait {
- guard let book = Book.fetch(bookID, context: self.context) else {return}
+ guard let book = Book.fetch(bookID, context: self.context),
+ let downloadTask = book.downloadTask else {return}
if error.code == NSURLErrorCancelled {
// If download task doesnt exist, it must mean download is cancelled by user
// DownloadTask object will have been deleted when user tap Cancel button / table row action
- guard let downloadTask = book.downloadTask else {return}
downloadTask.totalBytesWritten = task.countOfBytesReceived
downloadTask.state = .Paused
@@ -64,7 +64,7 @@ class Network: NSObject, NSURLSessionDelegate, NSURLSessionTaskDelegate, NSURLSe
guard let resumeData = error.userInfo[NSURLSessionDownloadTaskResumeData] as? NSData else {return}
Preference.resumeData[bookID] = resumeData
} else {
- // Handle other errors
+ downloadTask.state = .Error
}
}
}