Volume always controls music volume

This commit is contained in:
Christopher Eby 2011-09-17 21:26:53 -05:00
parent cce040ded8
commit 0f95ac6336

View File

@ -25,6 +25,7 @@ package org.kreed.vanilla;
import android.app.Activity;
import android.content.Intent;
import android.content.SharedPreferences;
import android.media.AudioManager;
import android.os.Bundle;
import android.os.Handler;
import android.os.HandlerThread;
@ -70,6 +71,8 @@ public class PlaybackActivity extends Activity implements Handler.Callback, View
super.onCreate(state);
ContextApplication.addActivity(this);
setVolumeControlStream(AudioManager.STREAM_MUSIC);
HandlerThread thread = new HandlerThread(getClass().getName());
thread.start();