Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Merge pull request #2470 from koying/fixdroidvolume

FIX: [droid] volume up/down not working
  • Loading branch information...
commit 484dda6ce6f92b13a5067a8ac48b7bb94b88b30f 2 parents 2c915ea + 7054e15
@theuni theuni authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  xbmc/android/activity/XBMCApp.cpp
View
2  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);
Please sign in to comment.
Something went wrong with that request. Please try again.