Merge pull request #328 from cemrich/bugfix/volume-button-sound
Suppressed volume button sounds while scrolling through feed items
This commit is contained in:
commit
8870a6fafe
1 changed files with 9 additions and 0 deletions
|
@ -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();
|
||||
|
|
Loading…
Reference in a new issue