commit | 6f4a8a58615ecab6c783085060ff73941654b1df | [log] [tgz] |
---|---|---|
author | Cedric Beust <cbeust@google.com> | Wed Sep 02 13:12:26 2009 -0700 |
committer | Cedric Beust <cbeust@google.com> | Wed Sep 02 13:12:26 2009 -0700 |
tree | bf67d37ae8ecde85f8535f918f2af6251683b41e | |
parent | bb54f93ff66f382dc706b9fff508d386e046fdc2 [diff] |
Fix the -1 unread count bug. Change-Id: I8b77ad3457504872928c1065d54f50c0618025b5
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 @@ if (unreadConversations == null) { return 0; } else { - return unreadConversations; + return unreadConversations < 0 ? 0 : unreadConversations; } }