Created
January 1, 2013 12:12
-
-
Save balazsbohonyi/4427012 to your computer and use it in GitHub Desktop.
Make sure we're running on Honeycomb or higher to use ActionBar APIs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Make sure we're running on Honeycomb or higher to use ActionBar APIs | |
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.HONEYCOMB) { | |
// For the main activity, make sure the app icon in the action bar | |
// does not behave as a button | |
ActionBar actionBar = getActionBar(); | |
actionBar.setHomeButtonEnabled(false); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment