@Override public void onWindowFocusChanged(boolean hasWindowFocus) { if (thread != null) { thread.onWindowFocusChanged(hasWindowFocus); } }