Skip to content

Commit

Permalink
修复 QMUIHelper is61InchScreen if 判断错误的 bug
Browse files Browse the repository at this point in the history
  • Loading branch information
MoLice committed Sep 24, 2019
1 parent c2cd61e commit 44f8e01
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion QMUIKit/QMUICore/QMUIHelper.m
Original file line number Diff line number Diff line change
Expand Up @@ -529,7 +529,7 @@ + (BOOL)is65InchScreen {
static NSInteger is61InchScreen = -1;
+ (BOOL)is61InchScreen {
if (is61InchScreen < 0) {
is61InchScreen = (DEVICE_WIDTH == self.screenSizeFor61Inch.width && DEVICE_HEIGHT == self.screenSizeFor61Inch.height && [[QMUIHelper deviceModel] isEqualToString:@"iPhone11,8"] || [[QMUIHelper deviceModel] isEqualToString:@"iPhone12,1"]) ? 1 : 0;
is61InchScreen = (DEVICE_WIDTH == self.screenSizeFor61Inch.width && DEVICE_HEIGHT == self.screenSizeFor61Inch.height && ([[QMUIHelper deviceModel] isEqualToString:@"iPhone11,8"] || [[QMUIHelper deviceModel] isEqualToString:@"iPhone12,1"])) ? 1 : 0;
}
return is61InchScreen > 0;
}
Expand Down

0 comments on commit 44f8e01

Please sign in to comment.