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:
parent
629549d76f
commit
efc7049dfd
1 changed files with 2 additions and 0 deletions
|
@ -96,6 +96,8 @@ public class MainActivity extends AppCompatActivity implements HistoryListener {
|
||||||
initFragments();
|
initFragments();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
setVolumeControlStream(AudioManager.STREAM_MUSIC);
|
||||||
|
|
||||||
setSupportActionBar(findViewById(R.id.toolbar));
|
setSupportActionBar(findViewById(R.id.toolbar));
|
||||||
setupDrawer();
|
setupDrawer();
|
||||||
initHistory();
|
initHistory();
|
||||||
|
|
Loading…
Add table
Reference in a new issue