forked from organicmaps/organicmaps
[AND] Fixed multiple notifications.
This commit is contained in:
parent
e33784718e
commit
4dffa878d8
3 changed files with 7 additions and 7 deletions
|
@ -776,7 +776,7 @@ extern "C"
|
|||
JNIEXPORT jboolean JNICALL
|
||||
Java_com_mapswithme_maps_Framework_nativeIsDataVersionChanged(JNIEnv * env, jclass clazz)
|
||||
{
|
||||
return g_framework->NativeFramework()->IsDataVersionChanged() ? JNI_TRUE : JNI_FALSE;
|
||||
return g_framework->NativeFramework()->IsDataVersionUpdated() ? JNI_TRUE : JNI_FALSE;
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
#include "framework.hpp"
|
||||
#include "framework.hpp"
|
||||
#include "feature_processor.hpp"
|
||||
#include "drawer.hpp"
|
||||
#include "benchmark_provider.hpp"
|
||||
|
@ -1712,12 +1712,12 @@ string Framework::GenerateApiBackUrl(url_scheme::ApiPoint const & point)
|
|||
return res;
|
||||
}
|
||||
|
||||
bool Framework::IsDataVersionChanged()
|
||||
bool Framework::IsDataVersionUpdated()
|
||||
{
|
||||
int64_t version;
|
||||
if (Settings::Get("DataVersion", version))
|
||||
int64_t storedVersion;
|
||||
if (Settings::Get("DataVersion", storedVersion))
|
||||
{
|
||||
return version != m_storage.GetCurrentDataVersion();
|
||||
return storedVersion < m_storage.GetCurrentDataVersion();
|
||||
}
|
||||
// no key in the settings, assume new version
|
||||
return true;
|
||||
|
|
|
@ -483,7 +483,7 @@ public:
|
|||
|
||||
/// @name Map updates
|
||||
//@{
|
||||
bool IsDataVersionChanged();
|
||||
bool IsDataVersionUpdated();
|
||||
void UpdateSavedDataVersion();
|
||||
//@}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue