Skip to content

Instantly share code, notes, and snippets.

@safaorhan
Created July 6, 2015 08:59
Show Gist options
  • Save safaorhan/c1b8c0cdfe44ac44adb5 to your computer and use it in GitHub Desktop.
Save safaorhan/c1b8c0cdfe44ac44adb5 to your computer and use it in GitHub Desktop.
isUserAGoat()
/**
* Used to determine whether the user making this call is subject to
* teleportations.
*
* <p>As of {@link android.os.Build.VERSION_CODES#LOLLIPOP}, this method can
* now automatically identify goats using advanced goat recognition technology.</p>
*
* @return Returns true if the user making this call is a goat.
*/
public boolean isUserAGoat() {
return mContext.getPackageManager()
.isPackageAvailable("com.coffeestainstudios.goatsimulator");
}
@safaorhan
Copy link
Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment