mirror of
https://github.com/2009scape/2009Scape-mobile.git
synced 2025-12-20 21:40:15 -07:00
Fix non continuous volume change.
This commit is contained in:
parent
dc479a2f03
commit
4fe9d20a3b
1 changed files with 1 additions and 0 deletions
|
|
@ -635,6 +635,7 @@ public class BaseMainActivity extends LoggableActivity {
|
||||||
*/
|
*/
|
||||||
|
|
||||||
//Filtering useless events
|
//Filtering useless events
|
||||||
|
if(event.getFlags() == KeyEvent.FLAG_FROM_SYSTEM) return false; //Volume keys and stuff
|
||||||
if(event.getRepeatCount() != 0
|
if(event.getRepeatCount() != 0
|
||||||
|| event.getAction() == KeyEvent.ACTION_MULTIPLE
|
|| event.getAction() == KeyEvent.ACTION_MULTIPLE
|
||||||
|| event.getKeyCode() == KeyEvent.KEYCODE_UNKNOWN
|
|| event.getKeyCode() == KeyEvent.KEYCODE_UNKNOWN
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue