2
0

Support for reduced transparency.

This commit is contained in:
Maarten Billemont
2017-04-20 22:29:10 -04:00
parent d9bd604436
commit da8c7064fe
13 changed files with 250 additions and 218 deletions

View File

@@ -76,7 +76,7 @@ PearlEnum( MPDevelopmentFuelConsumption,
[self reloadCellsHiding:self.allCellsBySection[0] showing:@[ self.loadingCell ]];
[self.allCellsBySection[0] enumerateObjectsUsingBlock:^(MPStoreProductCell *cell, NSUInteger idx, BOOL *stop) {
if ([cell isKindOfClass:[MPStoreProductCell class]]) {
cell.purchasedIndicator.alpha = 0;
cell.purchasedIndicator.visible = NO;
[cell.activityIndicator stopAnimating];
}
}];
@@ -313,7 +313,7 @@ PearlEnum( MPDevelopmentFuelConsumption,
BOOL purchased = [[MPiOSAppDelegate get] isFeatureUnlocked:productIdentifier];
NSInteger quantity = [self quantityForProductIdentifier:productIdentifier];
cell.priceLabel.text = purchased? @"": [self.currencyFormatter stringFromNumber:@([product.price floatValue] * quantity)];
cell.purchasedIndicator.alpha = purchased? 1: 0;
cell.purchasedIndicator.visible = purchased;
}
- (NSInteger)quantityForProductIdentifier:(NSString *)productIdentifier {