Skip to content

Commit

Permalink
fix the issue of UI Frezze
Browse files Browse the repository at this point in the history
  • Loading branch information
fcdv1 committed Jul 1, 2019
1 parent 45e5baa commit 1dbbddc
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion KVNProgress/Classes/KVNProgress.m
Original file line number Diff line number Diff line change
Expand Up @@ -916,7 +916,9 @@ - (void)setupMotionEffect

- (void)addToWindow
{
self.originalKeyWindow = [UIApplication sharedApplication].keyWindow;
if([UIApplication sharedApplication].keyWindow != self.progressWindow){
self.originalKeyWindow = [UIApplication sharedApplication].keyWindow;
}

if (!self.progressWindow) {
self.progressWindow = [[UIWindow alloc] initWithFrame:self.originalKeyWindow.frame];
Expand Down

0 comments on commit 1dbbddc

Please sign in to comment.