Skip to content

Commit 87808b5

Browse files
committed
remove premature bug fix
1 parent 2c2884c commit 87808b5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

app/src/main/java/org/cocos2dx/lib/Cocos2dxGLSurfaceView.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -250,7 +250,7 @@ class Cocos2dxGLSurfaceView(context: Context) : GLSurfaceView(context) {
250250
private fun legacyKeyDown(keyCode: Int, keyEvent: KeyEvent): Boolean {
251251
return when (keyCode) {
252252
KeyEvent.KEYCODE_BACK, KeyEvent.KEYCODE_MENU -> {
253-
if (keyEvent.repeatCount != 0 || BaseRobTopActivity.blockBackButton || manualBackEvents) {
253+
if (keyEvent.repeatCount != 0 || BaseRobTopActivity.blockBackButton) {
254254
return true
255255
}
256256
queueEvent { cocos2dxRenderer.handleKeyDown(keyCode) }
@@ -287,7 +287,7 @@ class Cocos2dxGLSurfaceView(context: Context) : GLSurfaceView(context) {
287287
super.onKeyDown(keyCode, event)
288288
}
289289
else -> {
290-
if (BaseRobTopActivity.blockBackButton || manualBackEvents) {
290+
if (BaseRobTopActivity.blockBackButton) {
291291
return true
292292
}
293293

0 commit comments

Comments
 (0)