Skip to content
This repository has been archived by the owner on May 10, 2024. It is now read-only.

Commit

Permalink
No Bug: Fix Rewards DB export debug feature on iPad (#2548)
Browse files Browse the repository at this point in the history
  • Loading branch information
kylehickinson authored May 13, 2020
1 parent 7eecde7 commit d471fe9
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions BraveRewardsUI/QA Settings/QASettingsViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -239,6 +239,9 @@ public class QASettingsViewController: TableViewController {
guard let appSupportPath = NSSearchPathForDirectoriesInDomains(.applicationSupportDirectory, .userDomainMask, true).first else { return }
let dbPath = (appSupportPath as NSString).appendingPathComponent("ledger/Rewards.db")
let activity = UIActivityViewController(activityItems: [URL(fileURLWithPath: dbPath)], applicationActivities: nil)
if UIDevice.current.userInterfaceIdiom == .pad {
activity.popoverPresentationController?.sourceView = view
}
self.present(activity, animated: true)
}

Expand Down

0 comments on commit d471fe9

Please sign in to comment.