diff --git a/Adjust/ADJActivityHandler.m b/Adjust/ADJActivityHandler.m index cb88ebadf..b1b51d218 100644 --- a/Adjust/ADJActivityHandler.m +++ b/Adjust/ADJActivityHandler.m @@ -233,6 +233,7 @@ - (void)initInternal:(ADJConfig *)adjustConfig { [[UIDevice currentDevice] adjSetIad:self]; [self readAttribution]; + [self readActivityState]; self.packageHandler = [ADJAdjustFactory packageHandlerForActivityHandler:self]; @@ -240,7 +241,6 @@ - (void)initInternal:(ADJConfig *)adjustConfig { self.shouldGetAttribution = YES; - [self readAttribution]; [self startInternal]; } diff --git a/example/example/ViewController.m b/example/example/ViewController.m index 4483075e4..19f65b7fb 100644 --- a/example/example/ViewController.m +++ b/example/example/ViewController.m @@ -23,11 +23,6 @@ @implementation ViewController - (void)viewDidLoad { [super viewDidLoad]; // Do any additional setup after loading the view, typically from a nib. - - BOOL isEnabled = [Adjust isEnabled]; - if (!isEnabled) { - [self.btnTrackRevenueEvent setTitle:@"Enable SDK" forState:UIControlStateNormal]; - } } - (void)didReceiveMemoryWarning {