From 6f4a8a58615ecab6c783085060ff73941654b1df Mon Sep 17 00:00:00 2001 From: Cedric Beust Date: Wed, 2 Sep 2009 13:12:26 -0700 Subject: Fix the -1 unread count bug. Change-Id: I8b77ad3457504872928c1065d54f50c0618025b5 --- core/java/android/provider/Gmail.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'core') diff --git a/core/java/android/provider/Gmail.java b/core/java/android/provider/Gmail.java index 4425e51..157b1c8 100644 --- a/core/java/android/provider/Gmail.java +++ b/core/java/android/provider/Gmail.java @@ -1551,7 +1551,7 @@ public final class Gmail { if (unreadConversations == null) { return 0; } else { - return unreadConversations; + return unreadConversations < 0 ? 0 : unreadConversations; } } -- cgit v1.1