Permalink
Browse files

Merge pull request #2470 from koying/fixdroidvolume

FIX: [droid] volume up/down not working
  • Loading branch information...
2 parents 2c915ea + 7054e15 commit 484dda6ce6f92b13a5067a8ac48b7bb94b88b30f @theuni theuni committed Mar 19, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 xbmc/android/activity/XBMCApp.cpp
@@ -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);

0 comments on commit 484dda6

Please sign in to comment.