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

Commit 812dba1f authored by Romain Guy's avatar Romain Guy Committed by Android (Google) Code Review
Browse files

Merge "Prevents NPE when a View was detached Bug #4068284" into honeycomb-mr1

parents 1250c94b e294d415
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -609,7 +609,7 @@ public abstract class HardwareRenderer {
                        DisplayList displayList = view.getDisplayList();
                        if (displayList != null) {
                            if (canvas.drawDisplayList(displayList, mRedrawClip)) {
                                if (mRedrawClip.isEmpty()) {
                                if (mRedrawClip.isEmpty() || view.getParent() == null) {
                                    view.invalidate();
                                } else {
                                    view.getParent().invalidateChild(view, mRedrawClip);