public void onWindowFocusChanged(boolean flag) { try { super.onWindowFocusChanged(flag); return; } catch (NullPointerException nullpointerexception) { return; } }
@Override public void onWindowFocusChanged(boolean hasWindowFocus) { try { super.onWindowFocusChanged(hasWindowFocus); } catch (NullPointerException e) { // Catch null pointer exception } }
@Override public void onWindowFocusChanged(boolean hasWindowFocus) { super.onWindowFocusChanged(hasWindowFocus); if (hasWindowFocus) { resumeTiltScroll(); } else { pauseTiltScroll(); } }