Fix bug 2852909 - screen density for contextual action bar
Change-Id: I9e3d8fe4e6f5eb0282cc103a98ed60ca2911c91e
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user