Fixed "install" button in the mandatory update alert not working and forcing users to use the "show" button and then install from the update view instead

This commit is contained in:
Andreas Linde
2014-01-27 00:01:13 +01:00
parent 7086153d46
commit 80e6cd6d16

View File

@@ -513,8 +513,8 @@ typedef NS_ENUM(NSInteger, BITUpdateAlertViewTag) {
UIAlertView *alertView = [[UIAlertView alloc] initWithTitle:BITHockeyLocalizedString(@"UpdateAvailable")
message:[NSString stringWithFormat:BITHockeyLocalizedString(@"UpdateAlertMandatoryTextWithAppVersion"), [self.newestAppVersion nameAndVersionString]]
delegate:self
cancelButtonTitle:BITHockeyLocalizedString(@"UpdateInstall")
otherButtonTitles:BITHockeyLocalizedString(@"UpdateShow"), nil
cancelButtonTitle:nil
otherButtonTitles:BITHockeyLocalizedString(@"UpdateShow"), BITHockeyLocalizedString(@"UpdateInstall"), nil
];
[alertView setTag:BITUpdateAlertViewTagMandatoryUpdate];
[alertView show];