Skip to content

Commit

Permalink
Display current album title on library view
Browse files Browse the repository at this point in the history
  • Loading branch information
Arclite committed Nov 30, 2024
1 parent 08b7d3f commit a4e7c15
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ class PhotoLibraryViewController: UIViewController, UICollectionViewDelegate, UI

PHPhotoLibrary.shared().register(self)

navigationItem.title = CoreStrings.PhotoLibraryViewController.navigationItemTitle
navigationItem.title = collection.title ?? CoreStrings.PhotoLibraryViewController.navigationItemTitle
navigationItem.rightBarButtonItem = SettingsBarButtonItem.standard

hideDocumentScannerObserver = NotificationCenter.default.addObserver(forName: _hideDocumentScanner.valueDidChange, object: nil, queue: nil) { [weak self] _ in
Expand Down Expand Up @@ -59,6 +59,7 @@ class PhotoLibraryViewController: UIViewController, UICollectionViewDelegate, UI
let newDataSource = PhotoLibraryDataSource(newCollection)
dataSource = newDataSource
shouldScrollToBottom = true
navigationItem.title = collection.title ?? CoreStrings.PhotoLibraryViewController.navigationItemTitle
}
}

Expand Down

0 comments on commit a4e7c15

Please sign in to comment.