mirror of
https://github.com/moonlight-stream/moonlight-android.git
synced 2026-10-20 15:27:18 +00:00
Set the volume buttons to control the music stream while streaming
This commit is contained in:
1 parent
47a3a959e5
commit
f31736ee2d
1 file changed
+4
@@ -15,6 +15,7 @@ import android.app.Activity;
|
||||
import android.content.Context;
|
||||
import android.content.SharedPreferences;
|
||||
import android.graphics.PixelFormat;
|
||||
import android.media.AudioManager;
|
||||
import android.net.ConnectivityManager;
|
||||
import android.os.Bundle;
|
||||
import android.view.InputDevice;
|
||||
@@ -78,6 +79,9 @@ public class Game extends Activity implements OnGenericMotionListener, OnTouchLi
|
||||
// We don't want a title bar
|
||||
requestWindowFeature(Window.FEATURE_NO_TITLE);
|
||||
|
||||
// Change volume button behavior
|
||||
setVolumeControlStream(AudioManager.STREAM_MUSIC);
|
||||
|
||||
// Inflate the content
|
||||
setContentView(R.layout.activity_game);
|
||||
|
||||
|
||||
Reference in new issue
Block a user