Skip to content

Commit

Permalink
Fixup for API 14 compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
Mike C committed Nov 13, 2012
1 parent 24cb66c commit 3beefb5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/com/cyanogenmod/filemanager/ui/ThemeManager.java
Original file line number Diff line number Diff line change
Expand Up @@ -463,14 +463,14 @@ public void setBackgroundDrawable(Context ctx, View view, String resource) {
String resId = String.format("%s_%s", this.mId, resource); //$NON-NLS-1$
int id = this.mResources.getIdentifier(resId, "drawable", this.mPackage); //$NON-NLS-1$
if (id != 0) {
view.setBackground(this.mResources.getDrawable(id));
view.setBackgroundDrawable(this.mResources.getDrawable(id));
return;
}

// Default theme
id = mDefaultTheme.mResources.getIdentifier(
resource, "drawable", mDefaultTheme.mPackage); //$NON-NLS-1$
view.setBackground(mDefaultTheme.mResources.getDrawable(id));
view.setBackgroundDrawable(mDefaultTheme.mResources.getDrawable(id));
}

/**
Expand Down

0 comments on commit 3beefb5

Please sign in to comment.