diff --git a/android/jni/com/mapswithme/maps/DisplayedCategories.cpp b/android/jni/com/mapswithme/maps/DisplayedCategories.cpp index bdddf6e29f..56d88ef84a 100644 --- a/android/jni/com/mapswithme/maps/DisplayedCategories.cpp +++ b/android/jni/com/mapswithme/maps/DisplayedCategories.cpp @@ -1,12 +1,16 @@ -#include "search/displayed_categories.hpp" +#include "com/mapswithme/maps/Framework.hpp" +#include "com/mapswithme/core/jni_helper.hpp" -#include "../core/jni_helper.hpp" +#include "search/displayed_categories.hpp" extern "C" { JNIEXPORT jobjectArray JNICALL Java_com_mapswithme_maps_search_DisplayedCategories_nativeGetKeys(JNIEnv * env, jclass clazz) { - return jni::ToJavaStringArray(env, search::DisplayedCategories::GetKeys()); + ::Framework * fr = g_framework->NativeFramework(); + ASSERT(fr, ()); + search::DisplayedCategories categories = fr->GetDisplayedCategories(); + return jni::ToJavaStringArray(env, categories.GetKeys()); } } // extern "C"