Fix an animation issue when clicking Password button in the root folder

This commit is contained in:
Bob Sun 2017-04-05 20:20:26 -07:00
parent 347a6d7750
commit 73ab4f8759
No known key found for this signature in database
GPG key ID: 1F86BA2052FED3B4

View file

@ -284,7 +284,11 @@ class PasswordsViewController: UIViewController, UITableViewDataSource, UITableV
func backAction(_ sender: Any?) { func backAction(_ sender: Any?) {
guard Defaults[.isShowFolderOn] else { return } guard Defaults[.isShowFolderOn] else { return }
reloadTableView(parent: parentPasswordEntity?.parent, anim: transitionFromLeft) var anim: CATransition? = transitionFromLeft
if parentPasswordEntity == nil {
anim = nil
}
reloadTableView(parent: parentPasswordEntity?.parent, anim: anim)
} }
func longPressAction(_ gesture: UILongPressGestureRecognizer) { func longPressAction(_ gesture: UILongPressGestureRecognizer) {