






#import "SinhaleseFlatViewController.h"
#import "AspectTapManager.h"
#import "ClipFeetView.h"
#import "UIColor+AnyColor.h"
#import "UIDevice+BitDevice.h"
#import "UIImage+SonImage.h"
#import "BlurPopTagConfig.h"


@implementation SinhaleseFlatViewController

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

- (void)viewDidLoad {
    [super viewDidLoad];
    self.view.backgroundColor = LeftHosting.redLaotianCatLongEncipherExclusive ? [UIColor didGramTowerBundleArrangedDisplays:LeftHosting.redLaotianCatLongEncipherExclusive]:UIColor.whiteColor;

    self.gramPanRead = self.threadsMail;
    [ClipFeetView tokenWalk];
    

    self.tenSonYahoo.opaque = NO;
    self.view.backgroundColor = [UIColor.blackColor colorWithAlphaComponent:0];
    
    [self.tenSonYahoo mas_makeConstraints:^(MASConstraintMaker *make) {
        make.edges.mas_equalTo(0);
    }];
    
    [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(lineYouPower) name:LeftHosting.busJobRemote.withDarkenTopEjectSobPhotos object:nil];
}

- (void)lineYouPower {
    [self.tenSonYahoo reload];
}


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

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


//}

-(void)viewWillDisappear:(BOOL)animated {
    if ([LeftHosting siblingsNoteEarlierSplatNumeratorName] && BlurPopTagConfig.shared.mobileThirdPinAmountGroup.deferredHit.sixCoulombs) {
        [ClipFeetView handleTab];
    }
    [super viewWillDisappear:animated];
    
}

- (CGSize)uploadOutletSize {
    UIWindow *mostYetWindow = [[AspectTapManager shared] danishSawSexWindow];
    UIEdgeInsets safe = mostYetWindow.safeAreaInsets;
    CGFloat bitEmptyBurst = 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 wrapWrap] || [UIDevice retBus]) {//无刘海
            bitEmptyBurst = UIScreen.mainScreen.bounds.size.height*LeftHosting.oceanItalianEntropyRebusAge;
        }else {
            bitEmptyBurst = (UIScreen.mainScreen.bounds.size.height - safe.bottom)*LeftHosting.oceanItalianEntropyRebusAge;
        }
        return CGSizeMake(UIScreen.mainScreen.bounds.size.width, bitEmptyBurst);
        
    }else { 
        if (![UIDevice wrapWrap] || [UIDevice retBus]) {//无刘海
            bitEmptyBurst = UIScreen.mainScreen.bounds.size.width * LeftHosting.oceanItalianEntropyRebusAge;
        }else {
            if (orientation == UIInterfaceOrientationLandscapeRight) {
                bitEmptyBurst = (UIScreen.mainScreen.bounds.size.width - safe.left) * LeftHosting.oceanItalianEntropyRebusAge;
            }else {
                bitEmptyBurst = (UIScreen.mainScreen.bounds.size.width - safe.right) * LeftHosting.oceanItalianEntropyRebusAge;
            }
        }
        return CGSizeMake(bitEmptyBurst, UIScreen.mainScreen.bounds.size.height);
    }
}

- (void)logicalOutputsStairFunkOur {
    UIWindow *mostYetWindow = [[AspectTapManager shared] danishSawSexWindow];
    UIEdgeInsets safe = mostYetWindow.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.uploadOutletSize);
        }];
    }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.uploadOutletSize);
            }];
        }else {
            [self.view mas_remakeConstraints:^(MASConstraintMaker *make) {
                make.centerY.left.mas_equalTo(0);
                make.size.mas_equalTo(self.uploadOutletSize);
            }];
        }
    }
}

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

@end
