Skip to content

Commit

Permalink
Don't suspend notifications on viewWillDisappear (#306)
Browse files Browse the repository at this point in the history
  • Loading branch information
ericrwolfe authored Jun 23, 2017
1 parent ff7311d commit dcb5b48
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 7 deletions.
5 changes: 0 additions & 5 deletions MapboxNavigation/NavigationViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -277,11 +277,6 @@ public class NavigationViewController: NavigationPulleyViewController, RouteMapV
self.delegate = self
}

public override func viewDidDisappear(_ animated: Bool) {
super.viewDidDisappear(animated)
suspendNotifications()
}

public override func viewWillAppear(_ animated: Bool) {
super.viewWillAppear(animated)

Expand Down
3 changes: 1 addition & 2 deletions MapboxNavigation/RouteManeuverViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -87,8 +87,7 @@ class RouteManeuverViewController: UIViewController {
resumeNotifications()
}

override func viewWillDisappear(_ animated: Bool) {
super.viewWillDisappear(animated)
deinit {
suspendNotifications()
}

Expand Down

0 comments on commit dcb5b48

Please sign in to comment.