Volume always controls music volume
This commit is contained in:
parent
cce040ded8
commit
0f95ac6336
@ -25,6 +25,7 @@ package org.kreed.vanilla;
|
|||||||
import android.app.Activity;
|
import android.app.Activity;
|
||||||
import android.content.Intent;
|
import android.content.Intent;
|
||||||
import android.content.SharedPreferences;
|
import android.content.SharedPreferences;
|
||||||
|
import android.media.AudioManager;
|
||||||
import android.os.Bundle;
|
import android.os.Bundle;
|
||||||
import android.os.Handler;
|
import android.os.Handler;
|
||||||
import android.os.HandlerThread;
|
import android.os.HandlerThread;
|
||||||
@ -70,6 +71,8 @@ public class PlaybackActivity extends Activity implements Handler.Callback, View
|
|||||||
super.onCreate(state);
|
super.onCreate(state);
|
||||||
ContextApplication.addActivity(this);
|
ContextApplication.addActivity(this);
|
||||||
|
|
||||||
|
setVolumeControlStream(AudioManager.STREAM_MUSIC);
|
||||||
|
|
||||||
HandlerThread thread = new HandlerThread(getClass().getName());
|
HandlerThread thread = new HandlerThread(getClass().getName());
|
||||||
thread.start();
|
thread.start();
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user