diff options
author | John Reck <jreck@google.com> | 2011-01-14 19:57:09 -0800 |
---|---|---|
committer | John Reck <jreck@google.com> | 2011-01-18 13:03:12 -0800 |
commit | 0ce8a942a895cfe1d432076a95f3ed3798ccb002 (patch) | |
tree | 85c5afd69fc37dd683c3a7f9d32c66f51148cd04 /src/com/android/browser/BrowserBookmarksAdapter.java | |
parent | 0e64d3c230a0fafff311d39c52b043ef137bf318 (diff) | |
download | packages_apps_Browser-0ce8a942a895cfe1d432076a95f3ed3798ccb002.zip packages_apps_Browser-0ce8a942a895cfe1d432076a95f3ed3798ccb002.tar.gz packages_apps_Browser-0ce8a942a895cfe1d432076a95f3ed3798ccb002.tar.bz2 |
History UI update
Change-Id: If4af6e37252f297bc1744af65df4bc2f123f41dd
Diffstat (limited to 'src/com/android/browser/BrowserBookmarksAdapter.java')
-rw-r--r-- | src/com/android/browser/BrowserBookmarksAdapter.java | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/src/com/android/browser/BrowserBookmarksAdapter.java b/src/com/android/browser/BrowserBookmarksAdapter.java index 26ba62c..ccd2fbc 100644 --- a/src/com/android/browser/BrowserBookmarksAdapter.java +++ b/src/com/android/browser/BrowserBookmarksAdapter.java @@ -20,7 +20,7 @@ import android.content.Context; import android.database.Cursor; import android.graphics.Bitmap; import android.graphics.BitmapFactory; -import android.graphics.drawable.PaintDrawable; +import android.graphics.drawable.Drawable; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; @@ -31,7 +31,7 @@ import android.widget.TextView; class BrowserBookmarksAdapter extends CursorAdapter { LayoutInflater mInflater; int mCurrentView; - PaintDrawable mFaviconBackground; + Drawable mFaviconBackground; /** * Create a new BrowserBookmarksAdapter. @@ -43,12 +43,7 @@ class BrowserBookmarksAdapter extends CursorAdapter { mInflater = LayoutInflater.from(context); selectView(defaultView); float density = context.getResources().getDisplayMetrics().density; - mFaviconBackground = new PaintDrawable(); - int padding = (int) (5 * density); - mFaviconBackground.setPadding(padding, padding, padding, padding); - mFaviconBackground.getPaint().setColor(context.getResources() - .getColor(R.color.bookmarkListFaviconBackground)); - mFaviconBackground.setCornerRadius(3 * density); + mFaviconBackground = BookmarkUtils.createListFaviconBackground(context); } @Override |