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

Commit b0be85f5 authored by Chet Haase's avatar Chet Haase Committed by Android (Google) Code Review
Browse files

Merge "Fix problem with transparent background on Twitter app" into honeycomb-mr1

parents b1912259 7840055f
Loading
Loading
Loading
Loading
+15 −1
Original line number Diff line number Diff line
@@ -3015,8 +3015,22 @@ public class ListView extends AbsListView {

    @Override
    public boolean isOpaque() {
        return (mCachingActive && mIsCacheColorOpaque && mDividerIsOpaque &&
        boolean retValue = (mCachingActive && mIsCacheColorOpaque && mDividerIsOpaque &&
                hasOpaqueScrollbars()) || super.isOpaque();
        if (retValue) {
            // only return true if the list items cover the entire area of the view
            final int listTop = mListPadding.top;
            View first = getChildAt(0);
            if (first == null || first.getTop() > listTop) {
                return false;
            }
            final int listBottom = getHeight() - mListPadding.bottom;
            View last = getChildAt(getChildCount() - 1);
            if (last == null || last.getBottom() < listBottom) {
                return false;
            }
        }
        return retValue;
    }

    @Override