Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

FIX: [droid] volume up/down not working #2470

Merged
merged 1 commit into from Mar 19, 2013
Jump to file or symbol
Failed to load files and symbols.
+1 −1
Split
@@ -941,7 +941,7 @@ int CXBMCApp::GetMaxSystemVolume(JNIEnv *env)
jmethodID mgetStreamMaxVolume = env->GetMethodID(cAudioManager, "getStreamMaxVolume", "(I)I");
jfieldID fstreamMusic = env->GetStaticFieldID(cAudioManager, "STREAM_MUSIC", "I");
jint stream_music = env->GetStaticIntField(cAudioManager, fstreamMusic);
- int maxVolume = (int)env->CallObjectMethod(oAudioManager, mgetStreamMaxVolume, stream_music); // AudioManager.STREAM_MUSIC
+ int maxVolume = (int)env->CallIntMethod(oAudioManager, mgetStreamMaxVolume, stream_music); // AudioManager.STREAM_MUSIC
env->DeleteLocalRef(oAudioManager);
env->DeleteLocalRef(cAudioManager);