Skip to content
This repository was archived by the owner on Jun 8, 2024. It is now read-only.

Commit 554bee1

Browse files
committed
ReminderService: If time is 0, ignore it
Signed-off-by: Fung <fython@163.com>
1 parent 71e8314 commit 554bee1

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

mobile/src/main/java/info/papdt/express/helper/services/ReminderService.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ private static Notification buildNotification(Context context, String title, Str
9191
builder.setDefaults(defaults);
9292
builder.setSmallIcon(icon);
9393
builder.setContentIntent(contentIntent);
94-
builder.setWhen(time);
94+
if (time > 0) builder.setWhen(time);
9595
builder.setAutoCancel(true);
9696

9797
if (Build.VERSION.SDK_INT >= 21) {

0 commit comments

Comments
 (0)