MCPcopy Create free account
hub / github.com/comaps/comaps / EnterBackground

Method EnterBackground

libs/map/framework.cpp:1231–1248  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1229}
1230
1231void Framework::EnterBackground()
1232{
1233 m_usageStats.EnterBackground();
1234
1235 if (m_drapeEngine)
1236 m_drapeEngine->OnEnterBackground();
1237
1238 SaveViewport();
1239
1240 m_trafficManager.OnEnterBackground();
1241
1242 // Do not clear caches for Android. This function is called when main activity is paused,
1243 // but at the same time search activity (for example) is enabled.
1244 // TODO(AlexZ): Use onStart/onStop on Android to correctly detect app background and remove #ifndef.
1245#ifndef OMIM_OS_ANDROID
1246 ClearAllCaches();
1247#endif
1248}
1249
1250void Framework::EnterForeground()
1251{

Callers 4

mainFunction · 0.45
~MapWidgetMethod · 0.45
~MainViewMethod · 0.45

Calls 1

OnEnterBackgroundMethod · 0.45

Tested by

no test coverage detected