diff options
author | John Reck <jreck@google.com> | 2010-11-24 10:32:28 -0800 |
---|---|---|
committer | John Reck <jreck@google.com> | 2010-11-24 13:57:28 -0800 |
commit | 608baa78f4071409294f79b37e7ffa9ca96c4223 (patch) | |
tree | a097b3a05a563629a7a77de713e07cd3fc90d14a /src/com/android/browser/BrowserBookmarksAdapter.java | |
parent | 4c2af7fc756a8e9e6bec4371c739b77a29aeb724 (diff) | |
download | packages_apps_Browser-608baa78f4071409294f79b37e7ffa9ca96c4223.zip packages_apps_Browser-608baa78f4071409294f79b37e7ffa9ca96c4223.tar.gz packages_apps_Browser-608baa78f4071409294f79b37e7ffa9ca96c4223.tar.bz2 |
Refactor Bookmark fragment, fixes NPE
Bug: 2926451
This change refactors the BrowserBookmarkPage fragment for better
encapsulation, and updates the CombinedBookmarkHistoryView and
ShortcutActivity. ShortcutActivity now supports folder navigation
as well as toggling list or thumbnail view.
Change-Id: Ie8168467e793d60d75c15746f81318cfa7e9f003
Diffstat (limited to 'src/com/android/browser/BrowserBookmarksAdapter.java')
-rw-r--r-- | src/com/android/browser/BrowserBookmarksAdapter.java | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/com/android/browser/BrowserBookmarksAdapter.java b/src/com/android/browser/BrowserBookmarksAdapter.java index 6478b10..f587f01 100644 --- a/src/com/android/browser/BrowserBookmarksAdapter.java +++ b/src/com/android/browser/BrowserBookmarksAdapter.java @@ -113,4 +113,9 @@ class BrowserBookmarksAdapter extends CursorAdapter { } mCurrentView = view; } + + @Override + public Cursor getItem(int position) { + return (Cursor) super.getItem(position); + } } |