diff options
author | George Mount <mount@google.com> | 2015-05-05 16:44:15 -0700 |
---|---|---|
committer | George Mount <mount@google.com> | 2015-05-06 16:24:07 -0700 |
commit | 8261a3f5ed1dbd5aa63b7819f2ef7a8e4a6ee9a1 (patch) | |
tree | a739b1570d4fae15a1a23b64aafbfc258285f8d9 /core | |
parent | 9260cb7ffe0845d229a8cfe948b4ba30fe32127b (diff) | |
download | frameworks_base-8261a3f5ed1dbd5aa63b7819f2ef7a8e4a6ee9a1.zip frameworks_base-8261a3f5ed1dbd5aa63b7819f2ef7a8e4a6ee9a1.tar.gz frameworks_base-8261a3f5ed1dbd5aa63b7819f2ef7a8e4a6ee9a1.tar.bz2 |
Fix crash during Activity Transition with TextureView.
Bug 20675857
GhostView was synchronously forcing the View's parent to get
the display list when it was created. TextureView's cannot
create a display list until a surface is available and will
crash if it is attempted. This change moves the request to
an invalidate to get it to execute at a later time.
Change-Id: I12afebdfd57eb29c1a35b23a63d045e319547faf
Diffstat (limited to 'core')
-rw-r--r-- | core/java/android/view/GhostView.java | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/core/java/android/view/GhostView.java b/core/java/android/view/GhostView.java index bc38e1a..9f46f45 100644 --- a/core/java/android/view/GhostView.java +++ b/core/java/android/view/GhostView.java @@ -40,8 +40,7 @@ public class GhostView extends View { mView.mGhostView = this; final ViewGroup parent = (ViewGroup) mView.getParent(); setGhostedVisibility(View.INVISIBLE); - parent.mRecreateDisplayList = true; - parent.updateDisplayListIfDirty(); + parent.invalidate(); } @Override |