Use the proper default app name in the Update View Controller

This commit is contained in:
Andreas Linde
2012-10-19 13:49:01 +02:00
parent 3cb7a23bd0
commit e6d76ca364
2 changed files with 4 additions and 1 deletions

View File

@@ -87,6 +87,9 @@ NSString *bit_appName(void) {
if (!appName)
appName = [[NSBundle mainBundle] objectForInfoDictionaryKey:@"CFBundleDisplayName"] ?: BITHockeyLocalizedString(@"HockeyFeedbackActivityAppPlaceholder");
if (!appName)
appName = [[NSBundle mainBundle] objectForInfoDictionaryKey:@"CFBundleName"];
return appName;
}

View File

@@ -940,7 +940,7 @@
// populate with default values (if empty)
if (![anAppVersions count]) {
BITAppVersionMetaInfo *defaultApp = [[[BITAppVersionMetaInfo alloc] init] autorelease];
defaultApp.name = [[NSBundle mainBundle] objectForInfoDictionaryKey:@"CFBundleName"];
defaultApp.name = bit_appName();
defaultApp.version = _currentAppVersion;
defaultApp.shortVersion = [[NSBundle mainBundle] objectForInfoDictionaryKey:@"CFBundleShortVersionString"];
_appVersions = [[NSArray arrayWithObject:defaultApp] retain];