summaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
authorCedric Beust <cbeust@google.com>2009-09-02 13:12:26 -0700
committerCedric Beust <cbeust@google.com>2009-09-02 13:12:26 -0700
commit6f4a8a58615ecab6c783085060ff73941654b1df (patch)
treebf67d37ae8ecde85f8535f918f2af6251683b41e /core
parentbb54f93ff66f382dc706b9fff508d386e046fdc2 (diff)
downloadframeworks_base-6f4a8a58615ecab6c783085060ff73941654b1df.zip
frameworks_base-6f4a8a58615ecab6c783085060ff73941654b1df.tar.gz
frameworks_base-6f4a8a58615ecab6c783085060ff73941654b1df.tar.bz2
Fix the -1 unread count bug.
Change-Id: I8b77ad3457504872928c1065d54f50c0618025b5
Diffstat (limited to 'core')
-rw-r--r--core/java/android/provider/Gmail.java2
1 files changed, 1 insertions, 1 deletions
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;
}
}