KEYCODE_VOLUME_MUTE only available API 11

This commit is contained in:
Hasufel
2014-03-29 14:29:06 +01:00
parent 0d99705651
commit d0c87ca1ca

View File

@@ -596,7 +596,7 @@ class MainView extends GLSurfaceView {
// These will be ignored by the app and passed to the default handler
case KeyEvent.KEYCODE_VOLUME_UP:
case KeyEvent.KEYCODE_VOLUME_DOWN:
case KeyEvent.KEYCODE_VOLUME_MUTE:
::if (ANDROID_TARGET_SDK_VERSION > 10)::case KeyEvent.KEYCODE_VOLUME_MUTE:::end::
return 0;
}