 	@IBOutlet weak var enableTwentyOneLabel: UILabel!
 	@IBOutlet weak var forceUpdateButton: UIButton!
 	@IBOutlet weak var openSettingsAppButton: UIButton!
+	var enterForegroundObserver:NSObjectProtocol?
 
 	private lazy var dateFormatter:DateFormatter = {
 		let df = DateFormatter()

 * See LICENSE for details.
 */

import UIKit

class ViewController: UIViewController

			self.enableTwentyOneLabel.text = "Enable \(appName!)"
		}

		self.enterForegroundObserver = NotificationCenter.default.addObserver(forName:.UIApplicationWillEnterForeground, object:nil, queue:OperationQueue.main, using:{(Notification) in
			weak var weakSelf = self
			weakSelf?.updateInstructions()
		})
		self.updateInstructions()

		self.openSettingsAppButton.isEnabled = UIApplication.shared.canOpenURL(Constants.SettingsAppURL as URL)

		self.updateDates()
	}

	deinit
	{
		if let observer = self.enterForegroundObserver {
			NotificationCenter.default.removeObserver(observer, name:.UIApplicationWillEnterForeground, object:nil)
		}
	}

	func updateDates()
