commit | dc911a043d45f43f181339a8078cadb2825f4038 | [log] [tgz] |
---|---|---|
author | Yorke Lee <yorkelee@google.com> | Wed Apr 01 14:08:42 2015 -0700 |
committer | Yorke Lee <yorkelee@google.com> | Mon Apr 06 14:08:54 2015 -0700 |
tree | 7f42c630ae4ac3cd87670fb251664e37c1e676ed | |
parent | 18c0feda76fe333f3db1bf7bd307458a9e6b6005 [diff] |
DO NOT MERGE Fix crash when rotating video fragment Due to a recent framework change, https://googleplex-android-review.git.corp.google.com/#/c/659363/ TextureView will now crash if setSurfaceTexture is called before the TextureView is attached to the window. Use an OnAttachStateListener to call setSurfaceTexture only after the view is attached to the window. Cherry-pick from https://us2-mirror-googleplex-android-review.googlesource.com/#/c/666312/1 Bug: 20071288 Change-Id: I8c443542db6f4a432a097326fdb49607baa55889