forked from organicmaps/organicmaps
[iOS] remove search progress spinner from bookmarks list
due to usage of undocumented API
This commit is contained in:
parent
6c9838e517
commit
55348d41b5
4 changed files with 4 additions and 8 deletions
|
@ -237,7 +237,7 @@ using namespace osm_auth_ios;
|
|||
[self incrementSessionsCountAndCheckForAlert];
|
||||
|
||||
//For first launch setup is called by FirstLaunchController
|
||||
[MWMPushNotifications setup:launchOptions];
|
||||
[MWMPushNotifications setup];
|
||||
}
|
||||
[self enableTTSForTheFirstTime];
|
||||
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
@interface MWMPushNotifications : NSObject
|
||||
|
||||
+ (void)setup:(NSDictionary *)launchOptions;
|
||||
+ (void)setup;
|
||||
|
||||
+ (void)application:(UIApplication *)application
|
||||
didRegisterForRemoteNotificationsWithDeviceToken:(NSData *)deviceToken;
|
||||
|
|
|
@ -23,12 +23,10 @@ NSString * const kPushDeviceTokenLogEvent = @"iOSPushDeviceToken";
|
|||
|
||||
@implementation MWMPushNotifications
|
||||
|
||||
+ (void)setup:(NSDictionary *)launchOptions
|
||||
+ (void)setup
|
||||
{
|
||||
PushNotificationManager * pushManager = [PushNotificationManager pushManager];
|
||||
|
||||
[pushManager handlePushReceived:launchOptions];
|
||||
|
||||
// make sure we count app open in Pushwoosh stats
|
||||
[pushManager sendAppOpen];
|
||||
|
||||
|
@ -57,8 +55,6 @@ NSString * const kPushDeviceTokenLogEvent = @"iOSPushDeviceToken";
|
|||
fetchCompletionHandler:(void (^)(UIBackgroundFetchResult))completionHandler
|
||||
{
|
||||
[Statistics logEvent:kStatEventName(kStatApplication, kStatPushReceived) withParameters:userInfo];
|
||||
if (![self handleURLPush:userInfo])
|
||||
[[PushNotificationManager pushManager] handlePushReceived:userInfo];
|
||||
completionHandler(UIBackgroundFetchResultNoData);
|
||||
}
|
||||
|
||||
|
|
|
@ -59,7 +59,7 @@ final class FirstLaunchController: WelcomeViewController {
|
|||
case .location:
|
||||
MWMLocationManager.start()
|
||||
case .notifications:
|
||||
MWMPushNotifications.setup(nil)
|
||||
MWMPushNotifications.setup()
|
||||
case .nothing:
|
||||
break
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue