1
0
mirror of https://github.com/TeamNewPipe/NewPipe synced 2024-12-24 00:50:32 +00:00

Control media volume with the hardware buttons.

Control media volume with the hardware buttons in the MainActivity. This is how the YouTube app works. Closes #1072.
This commit is contained in:
wójcik.online 2018-02-07 19:24:25 +01:00 committed by GitHub
parent 629549d76f
commit efc7049dfd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -96,6 +96,8 @@ public class MainActivity extends AppCompatActivity implements HistoryListener {
initFragments();
}
setVolumeControlStream(AudioManager.STREAM_MUSIC);
setSupportActionBar(findViewById(R.id.toolbar));
setupDrawer();
initHistory();