@Override
    public void onWindowFocusChanged(final boolean hasWindowFocus) {
        if (!shouldWindowFocusWait) {
            super.onWindowFocusChanged(hasWindowFocus);
        }
    }
@see <a href="https://code.google.com/p/android/issues/detail?id=23381">bug report</a>
main/src/main/java/cgeo/geocaching/ui/IndexOutOfBoundsAvoidingTextView.java