Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit dcdefbbf authored by Adam Powell's avatar Adam Powell
Browse files

Fix bug 2852909 - screen density for contextual action bar

Change-Id: I9e3d8fe4e6f5eb0282cc103a98ed60ca2911c91e
parent 456a00c4
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -76,7 +76,8 @@ public class ActionBarContextView extends ViewGroup {
                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();
    }