| 1229 | } |
| 1230 | |
| 1231 | void 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 | |
| 1250 | void Framework::EnterForeground() |
| 1251 | { |
no test coverage detected