Skip to content

Commit ce6d62c

Browse files
committed
Read activity state
1 parent 24c2c14 commit ce6d62c

File tree

2 files changed

+1
-6
lines changed

2 files changed

+1
-6
lines changed

Adjust/ADJActivityHandler.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -233,14 +233,14 @@ - (void)initInternal:(ADJConfig *)adjustConfig {
233233
[[UIDevice currentDevice] adjSetIad:self];
234234

235235
[self readAttribution];
236+
[self readActivityState];
236237

237238
self.packageHandler = [ADJAdjustFactory packageHandlerForActivityHandler:self];
238239

239240
self.attributionHandler = [self buildAttributionHandler];
240241

241242
self.shouldGetAttribution = YES;
242243

243-
[self readAttribution];
244244

245245
[self startInternal];
246246
}

example/example/ViewController.m

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -23,11 +23,6 @@ @implementation ViewController
2323
- (void)viewDidLoad {
2424
[super viewDidLoad];
2525
// Do any additional setup after loading the view, typically from a nib.
26-
27-
BOOL isEnabled = [Adjust isEnabled];
28-
if (!isEnabled) {
29-
[self.btnTrackRevenueEvent setTitle:@"Enable SDK" forState:UIControlStateNormal];
30-
}
3126
}
3227

3328
- (void)didReceiveMemoryWarning {

0 commit comments

Comments
 (0)