diff options
Diffstat (limited to 'src/com/android/browser/BrowserHistoryPage.java')
-rw-r--r-- | src/com/android/browser/BrowserHistoryPage.java | 13 |
1 files changed, 1 insertions, 12 deletions
diff --git a/src/com/android/browser/BrowserHistoryPage.java b/src/com/android/browser/BrowserHistoryPage.java index 942a8fd..6625e55 100644 --- a/src/com/android/browser/BrowserHistoryPage.java +++ b/src/com/android/browser/BrowserHistoryPage.java @@ -61,8 +61,6 @@ import android.widget.ListView; import android.widget.TextView; import android.widget.Toast; -import com.android.browser.CombinedBookmarkHistoryView.CombinedBookmarksCallbacks; - /** * Activity for displaying the browser's history, divided into * days of viewing. @@ -112,13 +110,6 @@ public class BrowserHistoryPage extends Fragment cm.setText(text); } - static BrowserHistoryPage newInstance(CombinedBookmarksCallbacks cb, Bundle args) { - BrowserHistoryPage bhp = new BrowserHistoryPage(); - bhp.mCallback = cb; - bhp.setArguments(args); - return bhp; - } - @Override public Loader<Cursor> onCreateLoader(int id, Bundle args) { Uri.Builder combinedBuilder = Combined.CONTENT_URI.buildUpon(); @@ -208,6 +199,7 @@ public class BrowserHistoryPage extends Fragment mDisableNewWindow = args.getBoolean(BrowserBookmarksPage.EXTRA_DISABLE_WINDOW, false); int mvlimit = getResources().getInteger(R.integer.most_visits_limit); mMostVisitsLimit = Integer.toString(mvlimit); + mCallback = (CombinedBookmarksCallbacks) getActivity(); } @Override @@ -663,9 +655,6 @@ public class BrowserHistoryPage extends Fragment if (data != null) { item.setFavicon(BitmapFactory.decodeByteArray(data, 0, data.length)); - } else { - item.setFavicon(CombinedBookmarkHistoryView - .getIconListenerSet().getFavicon(url)); } item.setIsBookmark(cursor.getInt(HistoryQuery.INDEX_IS_BOOKMARK) == 1); return item; |