Skip to content

Commit

Permalink
resetOptions OR before xOR
Browse files Browse the repository at this point in the history
To make it sure it set option to 0.
  • Loading branch information
muppetkermit committed Jul 9, 2014
1 parent 36fea09 commit 7c1d1f2
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -704,6 +704,7 @@ - (void)setOption:(PPRevealSideOptions)option {
}

- (void)resetOption:(PPRevealSideOptions)option {
_options |= option;
_options ^= option;
if (option == PPRevealSideOptionsShowShadows) [self handleShadows];
if (option == PPRevealSideOptionsiOS7StatusBarMoving || option == PPRevealSideOptionsiOS7StatusBarFading) self.underStatusBarView = nil;
Expand Down Expand Up @@ -1704,4 +1705,4 @@ CGFloat PPStatusBarHeight(void) {
if ([[UIApplication sharedApplication] isStatusBarHidden]) return 0.0;
if (UIInterfaceOrientationIsLandscape(PPInterfaceOrientation())) return [[UIApplication sharedApplication] statusBarFrame].size.width;
else return [[UIApplication sharedApplication] statusBarFrame].size.height;
}
}

0 comments on commit 7c1d1f2

Please sign in to comment.