diff options
author | John Reck <jreck@google.com> | 2011-02-17 12:43:33 -0800 |
---|---|---|
committer | John Reck <jreck@google.com> | 2011-02-17 13:08:27 -0800 |
commit | 7dd30cb0bd011e5fbd817fa64863b4c266dd76b7 (patch) | |
tree | 556c7826e44256dba9e0c92bbdac79e6d6ec6cfc /src/com/android/browser | |
parent | 15c0f987a09f24658946ce58dfb5a71dc0f04450 (diff) | |
download | packages_apps_Browser-7dd30cb0bd011e5fbd817fa64863b4c266dd76b7.zip packages_apps_Browser-7dd30cb0bd011e5fbd817fa64863b4c266dd76b7.tar.gz packages_apps_Browser-7dd30cb0bd011e5fbd817fa64863b4c266dd76b7.tar.bz2 |
Fix shouldUpdateImage check
Bug: 3466212
Also added a test case to check for regressions
Change-Id: I9a8979a0ced165f1c94945c62687b0bf3b7076fe
Diffstat (limited to 'src/com/android/browser')
-rw-r--r-- | src/com/android/browser/provider/BrowserProvider2.java | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/com/android/browser/provider/BrowserProvider2.java b/src/com/android/browser/provider/BrowserProvider2.java index 10b3821..3033db4 100644 --- a/src/com/android/browser/provider/BrowserProvider2.java +++ b/src/com/android/browser/provider/BrowserProvider2.java @@ -1441,6 +1441,9 @@ public class BrowserProvider2 extends SQLiteContentProvider { byte[] cthumb = null; byte[] ctouch = null; try { + if (cursor.getCount() <= 0) { + return nfavicon != null || nthumb != null || ntouch != null; + } while (cursor.moveToNext()) { if (nfavicon != null) { cfavicon = cursor.getBlob(0); |