Skip to content

Commit

Permalink
Merge pull request #10 from niralishaha25/dev
Browse files Browse the repository at this point in the history
keep original as default vide compression option
  • Loading branch information
niralishaha25 authored Jan 11, 2023
2 parents 020dc3d + 52f4446 commit 7e194f9
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions Source/Filters/Video/YPVideoCompressionVC.swift
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,8 @@ class YPVideoCompressionVC: UIViewController, UITableViewDelegate, UITableViewDa
@IBAction func overlayViewTapped(_ tapGesture: UITapGestureRecognizer) {
//ITALogger.log.debug("check mark overview pressed")
//AnalyticsManager.manager.logNewEvent(category: "check_mark_view", action: "card_settings_sheet_dismiss", label: "card setting sheet dismiss", value: nil)
self.didDismiss(self.checkedIndex ?? 0)
//keep original as default vide compression option
self.didDismiss(self.checkedIndex ?? (titleArray.count - 1))
self.dismiss(animated: true, completion: nil)
}

Expand Down Expand Up @@ -110,7 +111,8 @@ class YPVideoCompressionVC: UIViewController, UITableViewDelegate, UITableViewDa
func tableView(_ tableView: UITableView, didSelectRowAt indexPath: IndexPath) {
self.checkedIndex = indexPath.row
UserDefaults.standard.set(self.checkedIndex, forKey: COMPRESSION_OPTION)
self.didDismiss(self.checkedIndex ?? 0)
//keep original as default vide compression option
self.didDismiss(self.checkedIndex ?? (titleArray.count - 1))
self.dismiss(animated: true, completion: nil)
}

Expand Down

0 comments on commit 7e194f9

Please sign in to comment.