mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2026-02-15 07:19:57 +00:00
Use the proper default app name in the Update View Controller
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
@@ -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];
|
||||
|
||||
Reference in New Issue
Block a user