Merge pull request #328 from cemrich/bugfix/volume-button-sound

Suppressed volume button sounds while scrolling through feed items
This commit is contained in:
David-Development 2015-04-03 10:23:29 +02:00
commit 8870a6fafe

View file

@ -237,6 +237,15 @@ public class NewsDetailActivity extends PodcastFragmentActivity {
return super.onKeyDown(keyCode, event);
}
@Override
public boolean onKeyUp(int keyCode, KeyEvent event) {
if ((keyCode == KeyEvent.KEYCODE_VOLUME_UP) || (keyCode == KeyEvent.KEYCODE_VOLUME_DOWN)) {
// capture event to suppress android system sound
return true;
}
return super.onKeyUp(keyCode, event);
}
private void PageChanged(int position)
{
StopVideoOnCurrentPage();