Revert "[cherry] [MAPSME-5105] [ios] Fixed high cpu load in background."

This reverts commit b88a36a48c.

Signed-off-by: Fabian Wüthrich <me@fabwu.ch>
This commit is contained in:
Fabian Wüthrich 2024-08-07 12:33:06 -06:00 committed by Viktor Havaka
parent 532893c695
commit 1db5a0a1ca

View file

@ -226,7 +226,6 @@ void setShowLocationAlert(BOOL needShow) {
+ (void)applicationDidBecomeActive
{
[self start];
[[self manager] updateFrameworkInfo];
}
+ (void)applicationWillResignActive
@ -594,10 +593,8 @@ void setShowLocationAlert(BOOL needShow) {
- (void)updateFrameworkInfo
{
auto app = UIApplication.sharedApplication;
if (app.applicationState != UIApplicationStateActive)
return;
auto delegate = static_cast<MapsAppDelegate *>(app.delegate);
if (delegate.isDrapeEngineCreated)
if (delegate.isDrapeEngineCreated && app.applicationState == UIApplicationStateActive)
{
auto & f = GetFramework();
if (self.frameworkUpdateMode & MWMLocationFrameworkUpdateLocation)