Skip to content

Commit

Permalink
Fix didMoveToWindow issue
Browse files Browse the repository at this point in the history
  • Loading branch information
k06a committed Nov 29, 2016
1 parent 0f1f990 commit 88d0b65
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions Bluuur/Classes/MLWLiveBlurView.m
Original file line number Diff line number Diff line change
Expand Up @@ -47,14 +47,13 @@ - (void)setBlurProgress:(CGFloat)blurProgress {
- (void)didMoveToWindow {
[super didMoveToWindow];

[self updateLiveBlur];
[self appDidBecomeActive:nil];

if (self.window) {
[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(appDidBecomeActive:) name:UIApplicationDidBecomeActiveNotification object:nil];
}
else {
[[NSNotificationCenter defaultCenter] removeObserver:self name:UIApplicationDidBecomeActiveNotification object:nil];

}
}

Expand Down

0 comments on commit 88d0b65

Please sign in to comment.