Skip to content

Commit

Permalink
Fix crash on iPad and bump version
Browse files Browse the repository at this point in the history
  • Loading branch information
MrAdamBoyd committed Sep 27, 2017
1 parent 99e54f2 commit 92cae1b
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions DownTube/DownTube/Controllers/MasterViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ class MasterViewController: UITableViewController, VideoEditingHandlerDelegate,
/// - enterLinkAction: action that takes place if user wants to enter link
/// - browseAction: action that takes place if user wants to browse
private func buildAndShowAlertControllerForNewVideo(enterLinkAction: @escaping (UIAlertAction) -> Void, browseAction: @escaping (UIAlertAction) -> Void) {
let alertVC = UIAlertController(title: "How do you want to find the video?", message: nil, preferredStyle: .actionSheet)
let alertVC = UIAlertController(title: "How do you want to find the video?", message: nil, preferredStyle: UIDevice.current.userInterfaceIdiom == .phone ? .actionSheet : .alert)

alertVC.addAction(UIAlertAction(title: "Enter Link", style: .default, handler: enterLinkAction))

Expand Down Expand Up @@ -606,7 +606,7 @@ class MasterViewController: UITableViewController, VideoEditingHandlerDelegate,

let video = CoreDataController.sharedController.fetchedVideosController.object(at: indexPath)

let alertController = UIAlertController(title: nil, message: nil, preferredStyle: .actionSheet)
let alertController = UIAlertController(title: nil, message: nil, preferredStyle: UIDevice.current.userInterfaceIdiom == .phone ? .actionSheet : .alert)

for action in self.buildActionsForLongPressOn(video: video, at: indexPath) {
alertController.addAction(action)
Expand Down
2 changes: 1 addition & 1 deletion DownTube/DownTube/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
<key>CFBundlePackageType</key>
<string>APPL</string>
<key>CFBundleShortVersionString</key>
<string>1.3.8</string>
<string>1.3.9</string>
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleVersion</key>
Expand Down
2 changes: 1 addition & 1 deletion DownTube/DownTubeShareExtension/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
<key>CFBundlePackageType</key>
<string>XPC!</string>
<key>CFBundleShortVersionString</key>
<string>1.3.8</string>
<string>1.3.9</string>
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleVersion</key>
Expand Down
2 changes: 1 addition & 1 deletion DownTube/DownTubeUITests/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
<key>CFBundlePackageType</key>
<string>BNDL</string>
<key>CFBundleShortVersionString</key>
<string>1.3.8</string>
<string>1.3.9</string>
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleVersion</key>
Expand Down

0 comments on commit 92cae1b

Please sign in to comment.