Skip to content

Commit

Permalink
FIX: [droid] volume up/down not working
Browse files Browse the repository at this point in the history
  • Loading branch information
koying committed Mar 19, 2013
1 parent c28ead9 commit 7054e15
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion xbmc/android/activity/XBMCApp.cpp
Expand Up @@ -941,7 +941,7 @@ int CXBMCApp::GetMaxSystemVolume(JNIEnv *env)
jmethodID mgetStreamMaxVolume = env->GetMethodID(cAudioManager, "getStreamMaxVolume", "(I)I"); jmethodID mgetStreamMaxVolume = env->GetMethodID(cAudioManager, "getStreamMaxVolume", "(I)I");
jfieldID fstreamMusic = env->GetStaticFieldID(cAudioManager, "STREAM_MUSIC", "I"); jfieldID fstreamMusic = env->GetStaticFieldID(cAudioManager, "STREAM_MUSIC", "I");
jint stream_music = env->GetStaticIntField(cAudioManager, fstreamMusic); 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(oAudioManager);
env->DeleteLocalRef(cAudioManager); env->DeleteLocalRef(cAudioManager);
Expand Down

0 comments on commit 7054e15

Please sign in to comment.