am b0be85f5: Merge "Fix problem with transparent background on Twitter app" into honeycomb-mr1
* commit 'b0be85f50d55b03a34bec5bbb326daa79d5907fe': Fix problem with transparent background on Twitter app
This commit is contained in:
@@ -3015,8 +3015,22 @@ public class ListView extends AbsListView {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public boolean isOpaque() {
|
public boolean isOpaque() {
|
||||||
return (mCachingActive && mIsCacheColorOpaque && mDividerIsOpaque &&
|
boolean retValue = (mCachingActive && mIsCacheColorOpaque && mDividerIsOpaque &&
|
||||||
hasOpaqueScrollbars()) || super.isOpaque();
|
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
|
@Override
|
||||||
|
|||||||
Reference in New Issue
Block a user