Skip to content

Instantly share code, notes, and snippets.

@zsiegel
Last active December 29, 2015 00:49
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save zsiegel/7588299 to your computer and use it in GitHub Desktop.
WTF
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.JELLY_BEAN) {
teamSelector.getViewTreeObserver().removeOnGlobalLayoutListener(this);
} else {
teamSelector.getViewTreeObserver().removeGlobalOnLayoutListener(this);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment