mirror of
https://github.com/kiwix/kiwix-apple.git
synced 2025-09-26 05:18:31 -04:00
refactor
This commit is contained in:
parent
a28b840f1e
commit
f89b83522f
@ -103,8 +103,6 @@ class BookDetailController: UITableViewController, DZNEmptyDataSetSource, DZNEmp
|
||||
cellTitles[1] = [LocalizedStrings.downloading]
|
||||
case .Local:
|
||||
cellTitles[1] = [LocalizedStrings.remove]
|
||||
default:
|
||||
break
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -49,7 +49,7 @@
|
||||
</dict>
|
||||
</array>
|
||||
<key>CFBundleVersion</key>
|
||||
<string>1.8.1488</string>
|
||||
<string>1.8.1491</string>
|
||||
<key>ITSAppUsesNonExemptEncryption</key>
|
||||
<false/>
|
||||
<key>LSRequiresIPhoneOS</key>
|
||||
|
@ -21,7 +21,7 @@
|
||||
<key>CFBundleSignature</key>
|
||||
<string>????</string>
|
||||
<key>CFBundleVersion</key>
|
||||
<string>1.8.1492</string>
|
||||
<string>1.8.1495</string>
|
||||
<key>NSExtension</key>
|
||||
<dict>
|
||||
<key>NSExtensionMainStoryboard</key>
|
||||
|
@ -114,6 +114,10 @@ class TodayViewController: UIViewController, NCWidgetProviding, UICollectionView
|
||||
|
||||
cell.label.text = title
|
||||
cell.imageView.image = UIImage(data: thumbImageData)
|
||||
|
||||
if #available(iOS 10, *) {
|
||||
cell.label.textColor = UIColor.darkGrayColor()
|
||||
}
|
||||
}
|
||||
|
||||
// MARK: - UICollectionViewDelegate
|
||||
|
@ -222,7 +222,6 @@ class Book: NSManagedObject {
|
||||
case 1: return .Downloading
|
||||
case 2: return .Local
|
||||
case 3: return .Retained
|
||||
case 4: return .Purgeable
|
||||
default: return .Cloud
|
||||
}
|
||||
}
|
||||
@ -244,7 +243,7 @@ class Book: NSManagedObject {
|
||||
}
|
||||
|
||||
enum BookState: Int {
|
||||
case Cloud, Downloading, Local, Retained, Purgeable
|
||||
case Cloud, Downloading, Local, Retained
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user