Fixed depreciated called for device api level

Signed-off-by: Ricky Barrette <rickbarrette@gmail.com>
This commit is contained in:
2012-04-29 17:27:40 -04:00
parent b7df595c6c
commit cf4e242638

View File

@@ -179,7 +179,7 @@ public class ExaltedDice extends Activity implements OnClickListener, OnItemClic
* The following is for api 11 and up * The following is for api 11 and up
* else use compat methods * else use compat methods
*/ */
if(Integer.valueOf(android.os.Build.VERSION.SDK) > 11){ if(Integer.valueOf(android.os.Build.VERSION.SDK_INT) > 11){
ActionBar actionBar = getActionBar(); ActionBar actionBar = getActionBar();
actionBar.setDisplayHomeAsUpEnabled(true); actionBar.setDisplayHomeAsUpEnabled(true);
initPickers(); initPickers();