summaryrefslogtreecommitdiffstats
path: root/src/com/android/browser/BrowserBookmarksAdapter.java
diff options
context:
space:
mode:
authorLeon Scroggins <scroggo@google.com>2009-08-04 16:04:55 -0400
committerLeon Scroggins <scroggo@google.com>2009-08-04 16:16:27 -0400
commit0c7865002753aea5de117ea4c08043dca95d07b6 (patch)
treeb6c3286559bef67c46686296269db0ea2e13ea81 /src/com/android/browser/BrowserBookmarksAdapter.java
parent2b0da96f012b02c16adbec3fe040dea721e2f333 (diff)
downloadpackages_apps_Browser-0c7865002753aea5de117ea4c08043dca95d07b6.zip
packages_apps_Browser-0c7865002753aea5de117ea4c08043dca95d07b6.tar.gz
packages_apps_Browser-0c7865002753aea5de117ea4c08043dca95d07b6.tar.bz2
Updates for the look of the bookmarks page.
Add new assets. -tab_indicator.xml State selector for the background of tabs in the CombinedHistoryActivity -bookmark_thumnail.xml Web page title is now above the thumb. Removed the favicon. Added a shadow. -tab_header.xml Layout for the tabs in CombinedHistoryActivity -tabs.xml Change the height of the tabs. -bookmarks.xml Remove the title for the "switch" menu item, which gets set in Java, depending on the current viewing mode. -strings.xml Remove the placeholder menu item text, add the actual text for switching between modes. -BrowserBookmarksAdapter No longer set the favicon on top of the bookmark thumbs in grid mode. -BrowserBookmarksPage Implement onPrepareOptionsMenu, and set the title of a menu option, depending on the current viewing state. -CombinedHistoryActivity Create a common function for setting up all the tabs. Change the look of the tabs to match the new design.
Diffstat (limited to 'src/com/android/browser/BrowserBookmarksAdapter.java')
-rw-r--r--src/com/android/browser/BrowserBookmarksAdapter.java11
1 files changed, 0 insertions, 11 deletions
diff --git a/src/com/android/browser/BrowserBookmarksAdapter.java b/src/com/android/browser/BrowserBookmarksAdapter.java
index 75be45b..764daea 100644
--- a/src/com/android/browser/BrowserBookmarksAdapter.java
+++ b/src/com/android/browser/BrowserBookmarksAdapter.java
@@ -368,13 +368,11 @@ class BrowserBookmarksAdapter extends BaseAdapter {
}
View holder = convertView.findViewById(R.id.holder);
ImageView thumb = (ImageView) convertView.findViewById(R.id.thumb);
- ImageView fav = (ImageView) convertView.findViewById(R.id.fav);
TextView tv = (TextView) convertView.findViewById(R.id.label);
if (0 == position && !mCreateShortcut) {
// This is to create a bookmark for the current page.
holder.setVisibility(View.VISIBLE);
- fav.setVisibility(View.GONE);
tv.setText(mCurrentTitle);
// FIXME: Want to show the screenshot of the current page
thumb.setImageResource(R.drawable.blank);
@@ -393,15 +391,6 @@ class BrowserBookmarksAdapter extends BaseAdapter {
thumb.setImageBitmap(
BitmapFactory.decodeByteArray(data, 0, data.length));
}
- // Now show the favicon
- data = mCursor.getBlob(Browser.HISTORY_PROJECTION_FAVICON_INDEX);
- if (data == null) {
- fav.setVisibility(View.GONE);
- } else {
- fav.setVisibility(View.VISIBLE);
- fav.setImageBitmap(
- BitmapFactory.decodeByteArray(data, 0, data.length));
- }
return convertView;