enable for iPad only

This commit is contained in:
Nguyễn Đạt 2023-02-05 13:17:07 +07:00 committed by GitHub
parent 7b03afe376
commit 7139db47bc
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1365,7 +1365,7 @@ UIColor* raisedColor = [UIColor colorWithRed:0.035 green:0.035 blue:0.035 alpha:
if (IsEnabled(@"hideChipBar_enabled")) {
%init(gHideChipBar);
}
if (IsEnabled(@"iPhoneLayout_enabled")) {
if (IsEnabled(@"iPhoneLayout_enabled") && (UIDevice.currentDevice.userInterfaceIdiom == UIUserInterfaceIdiomPad)) {
%init(giPhoneLayout);
}