






#import "MapNeverAdoptViewController.h"
#import "HockeySeeManager.h"
#import "GetSolveView.h"
#import "UIColor+WhoColor.h"
#import "UIDevice+WasDevice.h"
#import "UIImage+EarImage.h"
#import "MidMailTagConfig.h"


@implementation MapNeverAdoptViewController

- (void)dealloc {
    [[NSNotificationCenter defaultCenter] removeObserver:self];
}

- (void)viewDidLoad {
    [super viewDidLoad];
    self.view.backgroundColor = LearnWeekly.jumpSubtractLogTalkReturnedHeader ? [UIColor boundaryDivideHandlesBankGopherEnvelope:LearnWeekly.jumpSubtractLogTalkReturnedHeader]:UIColor.whiteColor;

    self.baselineBit = self.askButTower;
    [GetSolveView modeBreak];
    

    self.enablingHis.opaque = NO;
    self.view.backgroundColor = [UIColor.blackColor colorWithAlphaComponent:0];
    
    [self.enablingHis mas_makeConstraints:^(MASConstraintMaker *make) {
        make.edges.mas_equalTo(0);
    }];
    
    [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(jobSampleSun) name:LearnWeekly.reuseRenewal.tooCyclingDescentIcyPlayableConclude object:nil];
}

- (void)jobSampleSun {
    [self.enablingHis reload];
}


- (void)viewWillAppear:(BOOL)animated {
    [super viewWillAppear:animated];
    [self factoriesRevisionLoopsMillionBulgarian];
}

//- (void)viewDidAppear:(BOOL)animated {


//}

-(void)viewWillDisappear:(BOOL)animated {
    if ([LearnWeekly sceneMenstrualPutIdentifyRedName] && MidMailTagConfig.shared.obtainDecisionCallbacksViolationMismatch.fitDayStone.rowSwipeNap) {
        [GetSolveView clockBusy];
    }
    [super viewWillDisappear:animated];
    
}

- (CGSize)forGregorianSize {
    UIWindow *oldTempWindow = [[HockeySeeManager shared] teamReturnedWindow];
    UIEdgeInsets safe = oldTempWindow.safeAreaInsets;
    CGFloat hostBodyFiber = 0;
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wdeprecated-declarations"
    UIInterfaceOrientation orientation = [[UIApplication sharedApplication] statusBarOrientation];
#pragma clang diagnostic pop
    
    if (orientation == UIInterfaceOrientationPortrait || orientation == UIInterfaceOrientationPortraitUpsideDown) {
        if (![UIDevice logApply] || [UIDevice airEra]) {//无刘海
            hostBodyFiber = UIScreen.mainScreen.bounds.size.height*LearnWeekly.germanRetriedNegotiateAnglePronoun;
        }else {
            hostBodyFiber = (UIScreen.mainScreen.bounds.size.height - safe.bottom)*LearnWeekly.germanRetriedNegotiateAnglePronoun;
        }
        return CGSizeMake(UIScreen.mainScreen.bounds.size.width, hostBodyFiber);
        
    }else { 
        if (![UIDevice logApply] || [UIDevice airEra]) {//无刘海
            hostBodyFiber = UIScreen.mainScreen.bounds.size.width * LearnWeekly.germanRetriedNegotiateAnglePronoun;
        }else {
            if (orientation == UIInterfaceOrientationLandscapeRight) {
                hostBodyFiber = (UIScreen.mainScreen.bounds.size.width - safe.left) * LearnWeekly.germanRetriedNegotiateAnglePronoun;
            }else {
                hostBodyFiber = (UIScreen.mainScreen.bounds.size.width - safe.right) * LearnWeekly.germanRetriedNegotiateAnglePronoun;
            }
        }
        return CGSizeMake(hostBodyFiber, UIScreen.mainScreen.bounds.size.height);
    }
}

- (void)factoriesRevisionLoopsMillionBulgarian {
    UIWindow *oldTempWindow = [[HockeySeeManager shared] teamReturnedWindow];
    UIEdgeInsets safe = oldTempWindow.safeAreaInsets;
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wdeprecated-declarations"
    UIInterfaceOrientation orientation = [[UIApplication sharedApplication] statusBarOrientation];
#pragma clang diagnostic pop
    
    if (orientation == UIInterfaceOrientationPortrait || orientation == UIInterfaceOrientationPortraitUpsideDown) {
        [self.view mas_remakeConstraints:^(MASConstraintMaker *make) {
            make.centerX.bottom.mas_equalTo(0);
            make.size.mas_equalTo(self.forGregorianSize);
        }];
    }else {
        
        if (orientation == UIInterfaceOrientationLandscapeRight) {
            
            [self.view mas_remakeConstraints:^(MASConstraintMaker *make) {
                make.centerY.mas_equalTo(0);
                make.left.mas_equalTo(safe.left);
                make.size.mas_equalTo(self.forGregorianSize);
            }];
        }else {
            [self.view mas_remakeConstraints:^(MASConstraintMaker *make) {
                make.centerY.left.mas_equalTo(0);
                make.size.mas_equalTo(self.forGregorianSize);
            }];
        }
    }
}

- (void)printerRearGenericsDelaySpeak:(NSSet<UITouch *> *)touches withEvent:(UIEvent *)event {
    [super printerRearGenericsDelaySpeak:touches withEvent:event];
    [[HockeySeeManager shared] structureLimitedLargeBuddhistEphemeralForceViewController:self.navigationController];
}

@end
