Skip to content
This repository

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

Merged
merged 1 commit into from over 1 year ago

2 participants

Chris Browet Cory Fields
Chris Browet
Collaborator

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

Cory Fields theuni merged commit 484dda6 into from
Cory Fields theuni closed this
Chris Browet koying deleted the branch
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Showing 1 unique commit by 1 author.

Mar 19, 2013
Chris Browet koying FIX: [droid] volume up/down not working 7054e15
This page is out of date. Refresh to see the latest.

Showing 1 changed file with 1 addition and 1 deletion. Show diff stats Hide diff stats

  1. +1 1  xbmc/android/activity/XBMCApp.cpp
2  xbmc/android/activity/XBMCApp.cpp
@@ -941,7 +941,7 @@ int CXBMCApp::GetMaxSystemVolume(JNIEnv *env)
941 941 jmethodID mgetStreamMaxVolume = env->GetMethodID(cAudioManager, "getStreamMaxVolume", "(I)I");
942 942 jfieldID fstreamMusic = env->GetStaticFieldID(cAudioManager, "STREAM_MUSIC", "I");
943 943 jint stream_music = env->GetStaticIntField(cAudioManager, fstreamMusic);
944   - int maxVolume = (int)env->CallObjectMethod(oAudioManager, mgetStreamMaxVolume, stream_music); // AudioManager.STREAM_MUSIC
  944 + int maxVolume = (int)env->CallIntMethod(oAudioManager, mgetStreamMaxVolume, stream_music); // AudioManager.STREAM_MUSIC
945 945
946 946 env->DeleteLocalRef(oAudioManager);
947 947 env->DeleteLocalRef(cAudioManager);

Tip: You can add notes to lines in a file. Hover to the left of a line to make a note

Something went wrong with that request. Please try again.