Merge "Make hasOverlappingRendering() method more accurate" into jb-mr2-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
6812efd24e
@@ -204,7 +204,7 @@ public class ImageView extends View {
|
||||
|
||||
@Override
|
||||
public boolean hasOverlappingRendering() {
|
||||
return (getBackground() != null);
|
||||
return (getBackground() != null && getBackground().getCurrent() != null);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
@@ -4794,7 +4794,8 @@ public class TextView extends View implements ViewTreeObserver.OnPreDrawListener
|
||||
|
||||
@Override
|
||||
public boolean hasOverlappingRendering() {
|
||||
return (getBackground() != null || mText instanceof Spannable || hasSelection());
|
||||
return ((getBackground() != null && getBackground().getCurrent() != null)
|
||||
|| mText instanceof Spannable || hasSelection());
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user