am 6812efd2: Merge "Make hasOverlappingRendering() method more accurate" into jb-mr2-dev
* commit '6812efd24ee38b7623a5ed85f8f342253a7bc036': Make hasOverlappingRendering() method more accurate
This commit is contained in:
@@ -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