diff options
author | wangqi <wangqi@google.com> | 2017-09-28 12:23:35 -0700 |
---|---|---|
committer | Eric Erfanian <erfanian@google.com> | 2017-10-02 14:56:37 -0700 |
commit | 4d705e558d25a8fd810cb551c43c5a517cd1c2b9 (patch) | |
tree | 62e9f38f107a3a0021c2454bda23a3da5c06f43d /java/com/android/incallui/videotech/empty/EmptyVideoTech.java | |
parent | 43d73dfdbda67ed9f405fa15e303643d97d33b70 (diff) |
Fix crash on hanging up simulator video call.
The problem is that InCallActivityCommon#onStop will try to commit any fragment which will crash.
This change also fix a bug that simulatorRemoteVideo is not stopped after hanging up.
Bug: 67045513
Test: manual
PiperOrigin-RevId: 170380589
Change-Id: I25e0f43141eaa573189f4d9c0109fd2689c10374
Diffstat (limited to 'java/com/android/incallui/videotech/empty/EmptyVideoTech.java')
-rw-r--r-- | java/com/android/incallui/videotech/empty/EmptyVideoTech.java | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/java/com/android/incallui/videotech/empty/EmptyVideoTech.java b/java/com/android/incallui/videotech/empty/EmptyVideoTech.java index f156a14ad..2e34a6a8a 100644 --- a/java/com/android/incallui/videotech/empty/EmptyVideoTech.java +++ b/java/com/android/incallui/videotech/empty/EmptyVideoTech.java @@ -107,4 +107,9 @@ public class EmptyVideoTech implements VideoTech { @Override public void becomePrimary() {} + + @Override + public com.android.dialer.logging.VideoTech.Type getVideoTechType() { + return com.android.dialer.logging.VideoTech.Type.NONE; + } } |