Clarify that the pendingIntent arg can be null.

This commit is contained in:
Peter Serwylo 2017-02-24 12:16:19 +11:00 committed by mvp76
parent 2ad61a4eb7
commit 583ea96816

View File

@ -188,7 +188,7 @@ public class AppUpdateStatusManager {
* @param status The current status of the app
* @param pendingIntent Action when notification is clicked. Can be null for default action(s)
*/
public void addApk(Apk apk, @NonNull Status status, PendingIntent pendingIntent) {
public void addApk(Apk apk, @NonNull Status status, @Nullable PendingIntent pendingIntent) {
if (apk == null) {
return;
}
@ -203,7 +203,10 @@ public class AppUpdateStatusManager {
}
}
public void updateApk(String key, @NonNull Status status, PendingIntent pendingIntent) {
/**
* @param pendingIntent Action when notification is clicked. Can be null for default action(s)
*/
public void updateApk(String key, @NonNull Status status, @Nullable PendingIntent pendingIntent) {
synchronized (appMapping) {
AppUpdateStatus entry = appMapping.get(key);
if (entry != null) {