1
0
mirror of https://github.com/danog/Telegram.git synced 2024-12-12 01:19:42 +01:00
Telegram/legacy/TelegraphKit/TGAppearance.m
2016-02-25 01:03:51 +01:00

21 lines
454 B
Objective-C

#import "TGAppearance.h"
#import "TGViewController.h"
#import <CoreMotion/CoreMotion.h>
bool TGBackdropEnabled()
{
return false;
static bool value = false;
static dispatch_once_t onceToken;
dispatch_once(&onceToken, ^
{
value = iosMajorVersion() >= 7 && [TGViewController isWidescreen] && [CMMotionActivityManager isActivityAvailable];
});
#if TARGET_IPHONE_SIMULATOR
//return false;
#endif
return value;
}