diff options
author | John Reck <jreck@google.com> | 2011-03-21 11:46:09 -0700 |
---|---|---|
committer | John Reck <jreck@google.com> | 2011-03-21 14:58:39 -0700 |
commit | 18e93f72fdfdd57ecaebe80ecccc9fecfbb16c8f (patch) | |
tree | 11cd560b335f4842bfde8619b7b948acf5cb6191 /src/com/android/browser/BrowserBookmarksAdapter.java | |
parent | bd9eaf60f38ce56f7aa25ba59bc60a6051eb37ce (diff) | |
download | packages_apps_Browser-18e93f72fdfdd57ecaebe80ecccc9fecfbb16c8f.zip packages_apps_Browser-18e93f72fdfdd57ecaebe80ecccc9fecfbb16c8f.tar.gz packages_apps_Browser-18e93f72fdfdd57ecaebe80ecccc9fecfbb16c8f.tar.bz2 |
Tab switcher cleanup
Make it holo and clean up the code
Change-Id: I6462cb72f104a2c076fd2ce2da876c74de8e783a
Diffstat (limited to 'src/com/android/browser/BrowserBookmarksAdapter.java')
-rw-r--r-- | src/com/android/browser/BrowserBookmarksAdapter.java | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/src/com/android/browser/BrowserBookmarksAdapter.java b/src/com/android/browser/BrowserBookmarksAdapter.java index 9e71077..201079c 100644 --- a/src/com/android/browser/BrowserBookmarksAdapter.java +++ b/src/com/android/browser/BrowserBookmarksAdapter.java @@ -20,7 +20,6 @@ import android.content.Context; import android.database.Cursor; import android.graphics.Bitmap; import android.graphics.BitmapFactory; -import android.graphics.drawable.Drawable; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; @@ -31,7 +30,6 @@ import android.widget.TextView; class BrowserBookmarksAdapter extends CursorAdapter { LayoutInflater mInflater; int mCurrentView; - Drawable mFaviconBackground; /** * Create a new BrowserBookmarksAdapter. @@ -42,8 +40,6 @@ class BrowserBookmarksAdapter extends CursorAdapter { super(context, null, 0); mInflater = LayoutInflater.from(context); selectView(defaultView); - float density = context.getResources().getDisplayMetrics().density; - mFaviconBackground = BookmarkUtils.createListFaviconBackground(context); } @Override @@ -101,9 +97,7 @@ class BrowserBookmarksAdapter extends CursorAdapter { } else { favicon.setImageBitmap(faviconBitmap); } - //favicon.setBackgroundResource(R.drawable.bookmark_list_favicon_bg); - // TODO: Switch to above instead of below once b/3353813 is fixed - favicon.setBackgroundDrawable(mFaviconBackground); + favicon.setBackgroundResource(R.drawable.bookmark_list_favicon_bg); } } |