[iOS] remove search progress spinner from bookmarks list

due to usage of undocumented API
This commit is contained in:
Aleksey Belouosv 2019-10-01 18:52:24 +03:00 committed by Aleksey Belousov
parent 6c9838e517
commit 55348d41b5
4 changed files with 4 additions and 8 deletions

View file

@ -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];

View file

@ -2,7 +2,7 @@
@interface MWMPushNotifications : NSObject
+ (void)setup:(NSDictionary *)launchOptions;
+ (void)setup;
+ (void)application:(UIApplication *)application
didRegisterForRemoteNotificationsWithDeviceToken:(NSData *)deviceToken;

View file

@ -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);
}

View file

@ -59,7 +59,7 @@ final class FirstLaunchController: WelcomeViewController {
case .location:
MWMLocationManager.start()
case .notifications:
MWMPushNotifications.setup(nil)
MWMPushNotifications.setup()
case .nothing:
break
}