Skip to content

Commit

Permalink
Fix: entry header disappearing on iPad (#366)
Browse files Browse the repository at this point in the history
  • Loading branch information
igorkulman authored and keepassium committed May 23, 2024
1 parent b5335ff commit d3300ab
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions KeePassium/database/entry/EntryViewerPagesVC.swift
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,15 @@ final class EntryViewerPagesVC: UIViewController, Refreshable {
pagesViewController.viewControllers?.first?.navigationItem.rightBarButtonItem
}

override func viewWillLayoutSubviews() {
super.viewWillLayoutSubviews()

if let titleView = navigationItem.titleView {
navigationItem.titleView = nil
navigationItem.titleView = titleView
}
}

override func traitCollectionDidChange(_ previousTraitCollection: UITraitCollection?) {
super.traitCollectionDidChange(previousTraitCollection)
refresh()
Expand Down

0 comments on commit d3300ab

Please sign in to comment.