mirror of
https://codeberg.org/comaps/comaps
synced 2025-12-20 13:23:59 +00:00
[ios] Remove celebratory alert after editing
Signed-off-by: Yannik Bloscheck <git@yannikbloscheck.com>
This commit is contained in:
committed by
Yannik Bloscheck
parent
962ee67833
commit
0b8bd42cb0
@@ -37,7 +37,6 @@ typedef NS_ENUM(NSUInteger, UserTouchesAction) { UserTouchesActionNone, UserTouc
|
||||
namespace {
|
||||
NSString *const kDownloaderSegue = @"Map2MapDownloaderSegue";
|
||||
NSString *const kEditorSegue = @"Map2EditorSegue";
|
||||
NSString *const kUDViralAlertWasShown = @"ViralAlertWasShown";
|
||||
NSString *const kPP2BookmarkEditingSegue = @"PP2BookmarkEditing";
|
||||
NSString *const kSettingsSegue = @"Map2Settings";
|
||||
NSString *const kAboutSegue = @"Map2About";
|
||||
@@ -383,7 +382,6 @@ NSString *const kAboutSegue = @"Map2About";
|
||||
[self updateStatusBarStyle];
|
||||
GetFramework().SetRenderingEnabled();
|
||||
GetFramework().InvalidateRendering();
|
||||
[self showViralAlertIfNeeded];
|
||||
[self checkAuthorization];
|
||||
[MWMRouter updateRoute];
|
||||
}
|
||||
@@ -492,23 +490,6 @@ NSString *const kAboutSegue = @"Map2About";
|
||||
[self.view addGestureRecognizer:hoverRecognizer];
|
||||
}
|
||||
|
||||
- (void)showViralAlertIfNeeded {
|
||||
NSUserDefaults *ud = NSUserDefaults.standardUserDefaults;
|
||||
|
||||
if (!Profile.needsReauthorization || [ud objectForKey:kUDViralAlertWasShown] || !Profile.isExisting)
|
||||
return;
|
||||
|
||||
if (osm::Editor::Instance().GetStats().m_edits.size() < 2)
|
||||
return;
|
||||
|
||||
if (!Platform::IsConnected())
|
||||
return;
|
||||
|
||||
[self.alertController presentEditorViralAlert];
|
||||
|
||||
[ud setObject:[NSDate date] forKey:kUDViralAlertWasShown];
|
||||
}
|
||||
|
||||
- (void)viewWillDisappear:(BOOL)animated {
|
||||
[super viewWillDisappear:animated];
|
||||
|
||||
|
||||
Reference in New Issue
Block a user