Commit 30e040a4 by andrewlewis Committed by Oliver Woodman

Add @DrawableRes for player notification manager icon

-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=193670840
parent 9de4e5d7
...@@ -27,6 +27,7 @@ import android.graphics.Bitmap; ...@@ -27,6 +27,7 @@ import android.graphics.Bitmap;
import android.graphics.Color; import android.graphics.Color;
import android.os.Handler; import android.os.Handler;
import android.os.Looper; import android.os.Looper;
import android.support.annotation.DrawableRes;
import android.support.annotation.IntDef; import android.support.annotation.IntDef;
import android.support.annotation.Nullable; import android.support.annotation.Nullable;
import android.support.annotation.StringRes; import android.support.annotation.StringRes;
...@@ -271,7 +272,7 @@ public class PlayerNotificationManager { ...@@ -271,7 +272,7 @@ public class PlayerNotificationManager {
private boolean colorized; private boolean colorized;
private int defaults; private int defaults;
private int color; private int color;
private int smallIconResourceId; private @DrawableRes int smallIconResourceId;
private int visibility; private int visibility;
private boolean ongoing; private boolean ongoing;
private boolean useChronometer; private boolean useChronometer;
...@@ -594,7 +595,7 @@ public class PlayerNotificationManager { ...@@ -594,7 +595,7 @@ public class PlayerNotificationManager {
* *
* @param smallIconResourceId The resource id of the small icon. * @param smallIconResourceId The resource id of the small icon.
*/ */
public final void setSmallIcon(int smallIconResourceId) { public final void setSmallIcon(@DrawableRes int smallIconResourceId) {
if (this.smallIconResourceId != smallIconResourceId) { if (this.smallIconResourceId != smallIconResourceId) {
this.smallIconResourceId = smallIconResourceId; this.smallIconResourceId = smallIconResourceId;
maybeUpdateNotification(); maybeUpdateNotification();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment