Skip to content

Commit

Permalink
Merge pull request atermenji#4 from akramfares/patch-1
Browse files Browse the repository at this point in the history
Update SimpleSampleActivity.java
  • Loading branch information
atermenji committed Jun 20, 2013
2 parents 75552e2 + 8c4defa commit cf78a22
Showing 1 changed file with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,13 @@ protected void onCreate(Bundle savedInstanceState) {

private void initSimpleSample() {
mIconicFontDrawable = new IconicFontDrawable(this);
mIconView.setBackground(mIconicFontDrawable);
int sdk = android.os.Build.VERSION.SDK_INT;
if(sdk < android.os.Build.VERSION_CODES.JELLY_BEAN) {
mIconView.setBackgroundDrawable(mIconicFontDrawable);
} else {
mIconView.setBackground(mIconicFontDrawable);
}


if (mIcon != null) {
mIconicFontDrawable.setIcon(mIcon);
Expand Down

0 comments on commit cf78a22

Please sign in to comment.