Commit a32513e7 authored by Edward Wang's avatar Edward Wang Committed by Jean-Baptiste Kempf

Set volume buttons to adjust volume when playing music

Signed-off-by: Jean-Baptiste Kempf's avatarJean-Baptiste Kempf <jb@videolan.org>
parent fb8c3fd9
......@@ -2,6 +2,7 @@ package org.videolan.vlc.android;
import android.app.Activity;
import android.graphics.Bitmap;
import android.media.AudioManager;
import android.os.Bundle;
import android.view.View;
import android.widget.ImageButton;
......@@ -48,6 +49,8 @@ public class AudioPlayerActivity extends Activity implements AudioPlayer {
mRepeat = (ImageButton) findViewById(R.id.repeat);
mTimeline = (SeekBar) findViewById(R.id.timeline);
this.setVolumeControlStream(AudioManager.STREAM_MUSIC);
mAudioController = AudioServiceController.getInstance();
lastTitle = "";
}
......
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