Fix bug 2852909 - screen density for contextual action bar

Change-Id: I9e3d8fe4e6f5eb0282cc103a98ed60ca2911c91e
This commit is contained in:
Adam Powell
2010-07-19 15:45:22 -07:00
parent 456a00c4ae
commit dcdefbbff2

View File

@@ -75,8 +75,9 @@ public class ActionBarContextView extends ViewGroup {
mCloseDrawable = a.getDrawable(
com.android.internal.R.styleable.Theme_actionBarCloseContextDrawable);
mItemMargin = mItemPadding / 2;
mContentHeight = CONTENT_HEIGHT_DIP;
mContentHeight =
(int) (CONTENT_HEIGHT_DIP * getResources().getDisplayMetrics().density + 0.5f);
a.recycle();
}