From 477355db8f47945bc5d844f0d83701d66c018518 Mon Sep 17 00:00:00 2001 From: Prashant Khurana Date: Sun, 1 May 2016 21:46:25 -0400 Subject: [PATCH] Added media volume control on main screen Fixes #38 --- .../main/java/org/schabi/newpipe/VideoItemListActivity.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/src/main/java/org/schabi/newpipe/VideoItemListActivity.java b/app/src/main/java/org/schabi/newpipe/VideoItemListActivity.java index 0405021be..66b19d114 100644 --- a/app/src/main/java/org/schabi/newpipe/VideoItemListActivity.java +++ b/app/src/main/java/org/schabi/newpipe/VideoItemListActivity.java @@ -3,6 +3,7 @@ package org.schabi.newpipe; import android.content.Context; import android.content.Intent; import android.content.SharedPreferences; +import android.media.AudioManager; import android.os.Bundle; import android.os.Handler; import android.preference.PreferenceManager; @@ -215,8 +216,7 @@ public class VideoItemListActivity extends AppCompatActivity ErrorActivity.ErrorInfo.make(ErrorActivity.SEARCHED, ServiceList.getNameOfService(currentStreamingServiceId), "", R.string.general_error)); } - //----------------------------------------------------------------------------- - //to solve issue 38 + setVolumeControlStream(AudioManager.STREAM_MUSIC); listFragment = (VideoItemListFragment) getSupportFragmentManager() .findFragmentById(R.id.videoitem_list); listFragment.setStreamingService(streamingService);