Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

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

Merged
merged 1 commit into from

2 participants

@koying
Collaborator

I'm surprised this ever worked...
Maybe something with changing api level / toolchain made it obvious.

@theuni theuni was assigned
@theuni theuni merged commit 484dda6 into xbmc:master
@koying koying deleted the koying:fixdroidvolume branch
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Mar 19, 2013
  1. @koying
This page is out of date. Refresh to see the latest.
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);
Something went wrong with that request. Please try again.