@Override public void onWindowFocusChanged(boolean hasFocus) { super.onWindowFocusChanged(hasFocus); Log.v("SDL", "onWindowFocusChanged(): " + hasFocus); SDLActivity.mHasFocus = hasFocus; if (hasFocus) { SDLActivity.handleResume(); } }
@Override public void onWindowFocusChanged(boolean hasFocus) { // TODO: Implement this method super.onWindowFocusChanged(hasFocus); if (waitForNext) { this.nextLevel(); waitForNext = false; } ((GameBoard) findViewById(R.id.gameBoard)).setGame(this.game); findViewById(R.id.gameBoard).invalidate(); ((GameBoard) findViewById(R.id.gameBoard)).getHowdyShadeView().invalidate(); }
@Override public void onWindowFocusChanged(boolean hasFocus) { super.onWindowFocusChanged(hasFocus); Log.v("SDL", "onWindowFocusChanged(): " + hasFocus); if (SDLActivity.mBrokenLibraries) { return; } SDLActivity.mHasFocus = hasFocus; if (hasFocus) { SDLActivity.handleResume(); } }