         }
     }
     
-    private func screenshotAndPresentPasscodeWindowIfNeeded() {
-        if isShowingPasscode() {
+    private func screenshotAndPresentPasscodeObstructionIfNeeded() {
+        if passcodeView?.window != nil {
             return
         }
         guard let rootViewController = passcodeDatasource?.rootViewController() else {

    }
    
    func presentWithNewPasscode(completion: PresentationCompletion? = nil) {
        screenshotAndPresentPasscodeWindowIfNeeded()
        guard let passcodeDatasource = passcodeDatasource else {
            return
        }

    }
    
    func hookApplicationWillResignActive() {
        NSNotificationCenter.defaultCenter().rx_notification(UIApplicationDidEnterBackgroundNotification).subscribeNext { _ in
            PasscodePresenter.sharedInstance.presentWithBlurBackground()
        }.addDisposableTo(disposeBag)
        NSNotificationCenter.defaultCenter().rx_notification(UIApplicationWillEnterForegroundNotification).subscribeNext { _ in
            if !PasscodePresenter.sharedInstance.isShowingPasscode() {
                PasscodePresenter.sharedInstance.presentWithValidatePasscode()
            }
