Commit 4c3e3aa4 authored by Geoffrey Métais's avatar Geoffrey Métais

Use audio max value instead of hardcoded one

parent c5856d24
......@@ -1867,7 +1867,7 @@ public class VideoPlayerActivity extends ActionBarActivity implements IVideoPlay
mAudioManager.setStreamVolume(AudioManager.STREAM_MUSIC, vol, AudioManager.FLAG_SHOW_UI);
mTouchAction = TOUCH_VOLUME;
vol = vol * 100 /15;
vol = vol * 100 / mAudioMax;
showInfoWithVerticalBar(getString(R.string.volume) + '\u00A0' + Integer.toString(vol) + '%', 1000, vol);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment