Fixes to TouchID in-app checks.
This commit is contained in:
parent
225e932fe7
commit
de70e871a2
@ -288,7 +288,7 @@
|
||||
|
||||
- (BOOL)touchID {
|
||||
|
||||
return [self.touchID_ boolValue] && ![[MPAppDelegate_Shared get] isFeatureUnlocked:MPProductTouchID];
|
||||
return [self.touchID_ boolValue] && [[MPAppDelegate_Shared get] isFeatureUnlocked:MPProductTouchID];
|
||||
}
|
||||
|
||||
- (void)setTouchID:(BOOL)aTouchID {
|
||||
|
@ -50,7 +50,7 @@
|
||||
self.avatarImage.image = [UIImage imageNamed:strf( @"avatar-%lu", (unsigned long)activeUser.avatar )];
|
||||
self.savePasswordSwitch.on = activeUser.saveKey;
|
||||
self.touchIDSwitch.on = activeUser.touchID;
|
||||
self.touchIDSwitch.enabled = self.savePasswordSwitch.on && ![[MPiOSAppDelegate get] isFeatureUnlocked:MPProductTouchID];
|
||||
self.touchIDSwitch.enabled = self.savePasswordSwitch.on && [[MPiOSAppDelegate get] isFeatureUnlocked:MPProductTouchID];
|
||||
}
|
||||
|
||||
#pragma mark - UITableViewDelegate
|
||||
|
@ -91,18 +91,6 @@ PearlEnum( MPDevelopmentFuelConsumption,
|
||||
- (MPStoreProductCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath {
|
||||
|
||||
MPStoreProductCell *cell = (MPStoreProductCell *)[super tableView:tableView cellForRowAtIndexPath:indexPath];
|
||||
// if (cell.contentView.translatesAutoresizingMaskIntoConstraints) {
|
||||
// cell.contentView.translatesAutoresizingMaskIntoConstraints = NO;
|
||||
// [cell addConstraints:@[
|
||||
// [NSLayoutConstraint constraintWithItem:cell attribute:NSLayoutAttributeTop relatedBy:NSLayoutRelationEqual
|
||||
// toItem:cell.contentView attribute:NSLayoutAttributeTop multiplier:1 constant:0],
|
||||
// [NSLayoutConstraint constraintWithItem:cell attribute:NSLayoutAttributeRight relatedBy:NSLayoutRelationEqual
|
||||
// toItem:cell.contentView attribute:NSLayoutAttributeRight multiplier:1 constant:0],
|
||||
// [NSLayoutConstraint constraintWithItem:cell attribute:NSLayoutAttributeLeft relatedBy:NSLayoutRelationEqual
|
||||
// toItem:cell.contentView attribute:NSLayoutAttributeLeft multiplier:1 constant:0],
|
||||
// ]];
|
||||
// }
|
||||
|
||||
if (indexPath.section == 0)
|
||||
cell.selectionStyle = [[MPiOSAppDelegate get] isFeatureUnlocked:[self productForCell:cell].productIdentifier]?
|
||||
UITableViewCellSelectionStyleNone: UITableViewCellSelectionStyleDefault;
|
||||
|
Loading…
Reference in New Issue
Block a user