From 71e76c71d8fb70433a60521dfdbcd4e7a8762ef8 Mon Sep 17 00:00:00 2001 From: Dianne Hackborn Date: Mon, 20 Dec 2010 11:44:09 -0800 Subject: Update to new loader APIs. Change-Id: I07914f5c1314509ecaec1a172e1f1d67f4be6641 --- src/com/android/browser/AddBookmarkPage.java | 2 +- src/com/android/browser/BrowserBookmarksPage.java | 2 +- src/com/android/browser/BrowserHistoryPage.java | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) (limited to 'src') diff --git a/src/com/android/browser/AddBookmarkPage.java b/src/com/android/browser/AddBookmarkPage.java index f5b677a..d3c147c 100644 --- a/src/com/android/browser/AddBookmarkPage.java +++ b/src/com/android/browser/AddBookmarkPage.java @@ -410,7 +410,7 @@ public class AddBookmarkPage extends Activity Folder thisFolder = folderStack.pop(); mCrumbs.pushView(thisFolder.Name, thisFolder); } - getLoaderManager().stopLoader(LOADER_ID_ALL_FOLDERS); + getLoaderManager().destroyLoader(LOADER_ID_ALL_FOLDERS); break; default: break; diff --git a/src/com/android/browser/BrowserBookmarksPage.java b/src/com/android/browser/BrowserBookmarksPage.java index 3fc270e..825da33 100644 --- a/src/com/android/browser/BrowserBookmarksPage.java +++ b/src/com/android/browser/BrowserBookmarksPage.java @@ -482,7 +482,7 @@ public class BrowserBookmarksPage extends Fragment implements View.OnCreateConte } mCrumbs.setController(null); mCrumbs = null; - getLoaderManager().stopLoader(LOADER_BOOKMARKS); + getLoaderManager().destroyLoader(LOADER_BOOKMARKS); } @Override diff --git a/src/com/android/browser/BrowserHistoryPage.java b/src/com/android/browser/BrowserHistoryPage.java index 01e3c21..d8e8177 100644 --- a/src/com/android/browser/BrowserHistoryPage.java +++ b/src/com/android/browser/BrowserHistoryPage.java @@ -224,8 +224,8 @@ public class BrowserHistoryPage extends Fragment public void onDestroy() { super.onDestroy(); CombinedBookmarkHistoryView.getIconListenerSet().removeListener(mIconReceiver); - getLoaderManager().stopLoader(LOADER_HISTORY); - getLoaderManager().stopLoader(LOADER_MOST_VISITED); + getLoaderManager().destroyLoader(LOADER_HISTORY); + getLoaderManager().destroyLoader(LOADER_MOST_VISITED); } @Override -- cgit v1.1