diff options
author | Leon Scroggins <scroggo@google.com> | 2009-07-21 14:00:00 -0400 |
---|---|---|
committer | Leon Scroggins <scroggo@google.com> | 2009-07-21 14:00:00 -0400 |
commit | 6982a71885f94b8b08b0cc425d3d06c7ba50b953 (patch) | |
tree | 8f08623e1b0ad4383206c20959079f759c8c1e20 /src | |
parent | bff2d603c022691237c31d9a57ad8c217c6e7e11 (diff) | |
download | packages_apps_Browser-6982a71885f94b8b08b0cc425d3d06c7ba50b953.zip packages_apps_Browser-6982a71885f94b8b08b0cc425d3d06c7ba50b953.tar.gz packages_apps_Browser-6982a71885f94b8b08b0cc425d3d06c7ba50b953.tar.bz2 |
Prevent stale data exception.
Before requerying, check mCursor to see if it has closed. If it
has, do not requery.
Diffstat (limited to 'src')
-rw-r--r-- | src/com/android/browser/BrowserHistoryPage.java | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/com/android/browser/BrowserHistoryPage.java b/src/com/android/browser/BrowserHistoryPage.java index e333416..d5e7049 100644 --- a/src/com/android/browser/BrowserHistoryPage.java +++ b/src/com/android/browser/BrowserHistoryPage.java @@ -303,6 +303,9 @@ public class BrowserHistoryPage extends ExpandableListActivity { } void refreshData() { + if (mCursor.isClosed()) { + return; + } mCursor.requery(); buildMap(); for (DataSetObserver o : mObservers) { |