AndEngine
AndEngine copied to clipboard
Bug after incomig call
I added custom pause menu by using FrameLayout.
After that user press menu button i check if (menuLayout != null) { System.out.print("PauseMenu not null\n"); if (menuLayout.getVisibility() == View.VISIBLE) menuLayout.setVisibility(View.INVISIBLE); else menuLayout.setVisibility(View.VISIBLE); } else { System.out.print("PauseMenu null\n"); menuLayout = (FrameLayout) getLayoutInflater().inflate(R.layout.pause_screen, null); addContentView(menuLayout, new LayoutParams(LayoutParams.FILL_PARENT, LayoutParams.FILL_PARENT)); }
It is works OK, but after incoming call menu does not shown