From 6982a71885f94b8b08b0cc425d3d06c7ba50b953 Mon Sep 17 00:00:00 2001 From: Leon Scroggins Date: Tue, 21 Jul 2009 14:00:00 -0400 Subject: Prevent stale data exception. Before requerying, check mCursor to see if it has closed. If it has, do not requery. --- src/com/android/browser/BrowserHistoryPage.java | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src') 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) { -- cgit v1.1