Skip to content

Commit

Permalink
Suppressed deprecation warnings.
Browse files Browse the repository at this point in the history
  • Loading branch information
michael-rapp committed Apr 19, 2015
1 parent cea095e commit 2109b0e
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1794,6 +1794,7 @@ public final Drawable getPreferenceScreenBackground() {
* valid drawable resource
* @return True, if the background has been set, false otherwise
*/
@SuppressWarnings("deprecation")
public final boolean setPreferenceScreenBackground(final int resourceId) {
return setPreferenceScreenBackground(getResources().getDrawable(
resourceId));
Expand Down Expand Up @@ -1855,6 +1856,7 @@ public final Drawable getNavigationBackground() {
* {@link Integer} value. The resource id must correspond to a
* valid drawable resource
*/
@SuppressWarnings("deprecation")
public final void setNavigationBackground(final int resourceId) {
setNavigationBackground(getResources().getDrawable(resourceId));
}
Expand Down Expand Up @@ -1912,6 +1914,7 @@ public final Drawable getButtonBarBackground() {
* valid drawable resource
* @return True, if the background has been set, false otherwise
*/
@SuppressWarnings("deprecation")
public final boolean setButtonBarBackground(final int resourceId) {
return setButtonBarBackground(getResources().getDrawable(resourceId));
}
Expand Down Expand Up @@ -1981,6 +1984,7 @@ public final Drawable getBreadCrumbBackground() {
* valid drawable resource
* @return True, if the background has been set, false otherwise
*/
@SuppressWarnings("deprecation")
public final boolean setBreadCrumbBackground(final int resourceId) {
return setBreadCrumbBackground(getResources().getDrawable(resourceId));
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -591,6 +591,7 @@ public final Drawable getButtonBarBackground() {
* valid drawable resource
* @return True, if the background has been set, false otherwise
*/
@SuppressWarnings("deprecation")
public final boolean setButtonBarBackground(final int resourceId) {
return setButtonBarBackground(getResources().getDrawable(resourceId));
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -250,6 +250,7 @@ private void visualizePreferenceHeaderSummary(final ViewHolder viewHolder,
* instance of the class {@link PreferenceHeader}. The preference
* header may not be null
*/
@SuppressWarnings("deprecation")
private void visualizePreferenceHeaderIcon(final ViewHolder viewHolder,
final PreferenceHeader preferenceHeader) {
if (viewHolder.iconImageView != null) {
Expand Down

0 comments on commit 2109b0e

Please sign in to comment.