Skip to content

Commit

Permalink
Call showUnlockAnimated: in viewDidLoad
Browse files Browse the repository at this point in the history
  • Loading branch information
Dasmer Singh committed Jan 7, 2015
1 parent deee667 commit 3713437
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
10 changes: 10 additions & 0 deletions VENTouchLock/Controllers/VENTouchLockSplashViewController.m
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,16 @@ - (instancetype)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibB
return self;
}

- (void)viewDidLoad
{
[super viewDidLoad];
if (!self.isSnapshotViewController) {
dispatch_async(dispatch_get_main_queue(), ^{
[self showUnlockAnimated:NO];
});
}
}

- (void)viewDidAppear:(BOOL)animated
{
[super viewDidAppear:animated];
Expand Down
1 change: 0 additions & 1 deletion VENTouchLock/VENTouchLock.m
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,6 @@ - (void)lockFromBackground:(BOOL)fromBackground
dispatch_async(dispatch_get_main_queue(), ^{
[rootViewController presentViewController:displayController animated:NO completion:^{
self.backgroundLockVisible = YES;
[splashViewController showUnlockAnimated:NO];
}];
});
}
Expand Down

0 comments on commit 3713437

Please sign in to comment.