diff options
| author | Android (Google) Code Review <android-gerrit@google.com> | 2009-09-02 13:15:52 -0700 |
|---|---|---|
| committer | Android (Google) Code Review <android-gerrit@google.com> | 2009-09-02 13:15:52 -0700 |
| commit | 682e30a894bfe9600f5c216c008ec4fe26c3b954 (patch) | |
| tree | 77621a7e56ad83408d49db902cfd9e17b93eb557 /core | |
| parent | 8ecd2aecf66010e974d9125f40282168be76b440 (diff) | |
| parent | 6f4a8a58615ecab6c783085060ff73941654b1df (diff) | |
| download | frameworks_base-682e30a894bfe9600f5c216c008ec4fe26c3b954.zip frameworks_base-682e30a894bfe9600f5c216c008ec4fe26c3b954.tar.gz frameworks_base-682e30a894bfe9600f5c216c008ec4fe26c3b954.tar.bz2 | |
Merge change 23667 into eclair
* changes:
Fix the -1 unread count bug.
Diffstat (limited to 'core')
| -rw-r--r-- | core/java/android/provider/Gmail.java | 2 |
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; } } |
