Added media volume control on main screen Fixes #38
This commit is contained in:
parent
11c89165c5
commit
477355db8f
1 changed files with 2 additions and 2 deletions
|
@ -3,6 +3,7 @@ package org.schabi.newpipe;
|
||||||
import android.content.Context;
|
import android.content.Context;
|
||||||
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.preference.PreferenceManager;
|
import android.preference.PreferenceManager;
|
||||||
|
@ -215,8 +216,7 @@ public class VideoItemListActivity extends AppCompatActivity
|
||||||
ErrorActivity.ErrorInfo.make(ErrorActivity.SEARCHED,
|
ErrorActivity.ErrorInfo.make(ErrorActivity.SEARCHED,
|
||||||
ServiceList.getNameOfService(currentStreamingServiceId), "", R.string.general_error));
|
ServiceList.getNameOfService(currentStreamingServiceId), "", R.string.general_error));
|
||||||
}
|
}
|
||||||
//-----------------------------------------------------------------------------
|
setVolumeControlStream(AudioManager.STREAM_MUSIC);
|
||||||
//to solve issue 38
|
|
||||||
listFragment = (VideoItemListFragment) getSupportFragmentManager()
|
listFragment = (VideoItemListFragment) getSupportFragmentManager()
|
||||||
.findFragmentById(R.id.videoitem_list);
|
.findFragmentById(R.id.videoitem_list);
|
||||||
listFragment.setStreamingService(streamingService);
|
listFragment.setStreamingService(streamingService);
|
||||||
|
|
Loading…
Reference in a new issue