






#import "UIDevice+RowDevice.h"
#import "UploadWhoManager.h"
@import UIKit;

@implementation UIDevice (RowDevice)

static NSInteger putIll = -1;
+ (BOOL)putIll {
    if (putIll < 0) {
        putIll = [UIDevice currentDevice].userInterfaceIdiom == UIUserInterfaceIdiomPad ? 1 : 0;
    }
    return putIll > 0;
}

+ (BOOL)dirtyOdd {
    if (@available(iOS 11.0, *)) {
        
        UIWindow *window = UploadWhoManager.shared.roomSystolicWindow;
        
        UIEdgeInsets safeArea = window.safeAreaInsets;
        
        
        BOOL hasPause = ([UIDevice currentDevice].userInterfaceIdiom == UIUserInterfaceIdiomPhone);
        
        
        return hasPause && (
            safeArea.top > 20.0 ||          
            safeArea.left > 0 ||            
            safeArea.right > 0              
        );
    }
    return NO; 
}

@end
