Skip to content

Commit

Permalink
Merge pull request adjust#63 from adjust/read_activity_state
Browse files Browse the repository at this point in the history
Read activity state
  • Loading branch information
nonelse committed Dec 10, 2014
2 parents 24c2c14 + ce6d62c commit fce6adf
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 6 deletions.
2 changes: 1 addition & 1 deletion Adjust/ADJActivityHandler.m
Original file line number Diff line number Diff line change
Expand Up @@ -233,14 +233,14 @@ - (void)initInternal:(ADJConfig *)adjustConfig {
[[UIDevice currentDevice] adjSetIad:self];

[self readAttribution];
[self readActivityState];

self.packageHandler = [ADJAdjustFactory packageHandlerForActivityHandler:self];

self.attributionHandler = [self buildAttributionHandler];

self.shouldGetAttribution = YES;

[self readAttribution];

[self startInternal];
}
Expand Down
5 changes: 0 additions & 5 deletions example/example/ViewController.m
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit fce6adf

Please sign in to comment.