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

Commit 0931a851 authored by Michael Jurka's avatar Michael Jurka
Browse files

Make hasOverlappingRendering() method more accurate

Bug: 8439502

Change-Id: I80075eddf6abc7999b70e665e692d88b81d5f087
parent 62a4858b
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -204,7 +204,7 @@ public class ImageView extends View {

    @Override
    public boolean hasOverlappingRendering() {
        return (getBackground() != null);
        return (getBackground() != null && getBackground().getCurrent() != null);
    }

    @Override
+2 −1
Original line number Diff line number Diff line
@@ -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());
    }

    /**