Add @DrawableRes for player notification manager icon

-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=193670840
This commit is contained in:
andrewlewis 2018-04-20 08:19:01 -07:00 committed by Oliver Woodman
parent 9de4e5d7ac
commit 30e040a48d

View file

@ -27,6 +27,7 @@ import android.graphics.Bitmap;
import android.graphics.Color;
import android.os.Handler;
import android.os.Looper;
import android.support.annotation.DrawableRes;
import android.support.annotation.IntDef;
import android.support.annotation.Nullable;
import android.support.annotation.StringRes;
@ -271,7 +272,7 @@ public class PlayerNotificationManager {
private boolean colorized;
private int defaults;
private int color;
private int smallIconResourceId;
private @DrawableRes int smallIconResourceId;
private int visibility;
private boolean ongoing;
private boolean useChronometer;
@ -594,7 +595,7 @@ public class PlayerNotificationManager {
*
* @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) {
this.smallIconResourceId = smallIconResourceId;
maybeUpdateNotification();