diff options
author | Yorke Lee <yorkelee@google.com> | 2015-03-16 15:29:51 +0000 |
---|---|---|
committer | Android (Google) Code Review <android-gerrit@google.com> | 2015-03-16 15:29:52 +0000 |
commit | 95dc0ffe6445c9b011e4c8cc10b6b42adede93f2 (patch) | |
tree | 1ff0c35c86432301940a2353c7390fa0420cd033 | |
parent | 45150d51ceffd152afb092d2ca18e0c6a996c4ee (diff) | |
parent | c276df6878f97e4cc2650aeceedb8795072e35b2 (diff) |
Merge "Don't crash when rotating during video call"
-rw-r--r-- | InCallUI/src/com/android/incallui/VideoCallFragment.java | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/InCallUI/src/com/android/incallui/VideoCallFragment.java b/InCallUI/src/com/android/incallui/VideoCallFragment.java index 7859a17bc..7cc945ac9 100644 --- a/InCallUI/src/com/android/incallui/VideoCallFragment.java +++ b/InCallUI/src/com/android/incallui/VideoCallFragment.java @@ -138,6 +138,10 @@ public class VideoCallFragment extends BaseFragment<VideoCallPresenter, * @param view The {@link TextureView}. */ public void recreateView(TextureView view) { + if (mTextureView == view) { + return; + } + mTextureView = view; mTextureView.setSurfaceTextureListener(this); mTextureView.setOnClickListener(this); |