From 87b1da761156ec339ab4ccd159e6ba6997f9e7d0 Mon Sep 17 00:00:00 2001 From: John Firebaugh Date: Wed, 20 May 2015 08:21:29 -0700 Subject: DefaultFileSource has responsibility for handling mapbox:// URLs --- android/cpp/jni.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'android/cpp') diff --git a/android/cpp/jni.cpp b/android/cpp/jni.cpp index 2c7e757783..64e72e1499 100644 --- a/android/cpp/jni.cpp +++ b/android/cpp/jni.cpp @@ -373,14 +373,14 @@ nativeSetAccessToken(JNIEnv *env, jobject obj, jlong nativeMapViewPtr, jstring a mbgl::Log::Debug(mbgl::Event::JNI, "nativeSetAccessToken"); assert(nativeMapViewPtr != 0); NativeMapView *nativeMapView = reinterpret_cast(nativeMapViewPtr); - nativeMapView->getMap().setAccessToken(std_string_from_jstring(env, accessToken)); + nativeMapView->getFileSource().setAccessToken(std_string_from_jstring(env, accessToken)); } jstring JNICALL nativeGetAccessToken(JNIEnv *env, jobject obj, jlong nativeMapViewPtr) { mbgl::Log::Debug(mbgl::Event::JNI, "nativeGetAccessToken"); assert(nativeMapViewPtr != 0); NativeMapView *nativeMapView = reinterpret_cast(nativeMapViewPtr); - return std_string_to_jstring(env, nativeMapView->getMap().getAccessToken()); + return std_string_to_jstring(env, nativeMapView->getFileSource().getAccessToken()); } void JNICALL nativeCancelTransitions(JNIEnv *env, jobject obj, jlong nativeMapViewPtr) { -- cgit v1.2.1