mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-05-03 20:46:28 +00:00
Fixed android compilation issues
This commit is contained in:
parent
b1ae558b69
commit
9d7d608375
2 changed files with 5 additions and 3 deletions
|
|
@ -170,17 +170,19 @@ void AndroidPlatformHelpers::releaseCpuLock(){
|
|||
}
|
||||
|
||||
std::string AndroidPlatformHelpers::getDataPath(){
|
||||
JNIEnv *env = ms_get_jni_env();
|
||||
jstring jdata_path = (jstring)env->CallObjectMethod(mJavaHelper,mGetDataPathId);
|
||||
const char *data_path = GetStringUTFChars(env, jdata_path);
|
||||
string dataPath = data_path;
|
||||
std::string dataPath = data_path;
|
||||
ReleaseStringUTFChars(env, jdata_path, data_path);
|
||||
return dataPath;
|
||||
}
|
||||
|
||||
std::string AndroidPlatformHelpers::getConfigPath(){
|
||||
JNIEnv *env = ms_get_jni_env();
|
||||
jstring jconfig_path = (jstring)env->CallObjectMethod(mJavaHelper,mGetConfigPathId);
|
||||
const char *config_path = GetStringUTFChars(env, jconfig_path);
|
||||
string configPath = config_path;
|
||||
std::string configPath = config_path;
|
||||
ReleaseStringUTFChars(env, jconfig_path, config_path);
|
||||
return configPath;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -41,9 +41,9 @@ const string &Paths::getPath (Paths::Type type, void *context) {
|
|||
case Data:
|
||||
return SysPaths::getDataPath(context);
|
||||
case Config:
|
||||
default:
|
||||
return SysPaths::getConfigPath(context);
|
||||
}
|
||||
return NULL;
|
||||
}
|
||||
|
||||
LINPHONE_END_NAMESPACE
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue