OLD | NEW |
1 /* | 1 /* |
2 * Copyright 2015 The WebRTC Project Authors. All rights reserved. | 2 * Copyright 2015 The WebRTC Project Authors. All rights reserved. |
3 * | 3 * |
4 * Use of this source code is governed by a BSD-style license | 4 * Use of this source code is governed by a BSD-style license |
5 * that can be found in the LICENSE file in the root of the source | 5 * that can be found in the LICENSE file in the root of the source |
6 * tree. An additional intellectual property rights grant can be found | 6 * tree. An additional intellectual property rights grant can be found |
7 * in the file PATENTS. All contributing project authors may | 7 * in the file PATENTS. All contributing project authors may |
8 * be found in the AUTHORS file in the root of the source tree. | 8 * be found in the AUTHORS file in the root of the source tree. |
9 */ | 9 */ |
10 | 10 |
(...skipping 261 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
272 } | 272 } |
273 | 273 |
274 @Override | 274 @Override |
275 protected void onDestroy() { | 275 protected void onDestroy() { |
276 disconnect(); | 276 disconnect(); |
277 super.onDestroy(); | 277 super.onDestroy(); |
278 if (logToast != null) { | 278 if (logToast != null) { |
279 logToast.cancel(); | 279 logToast.cancel(); |
280 } | 280 } |
281 activityRunning = false; | 281 activityRunning = false; |
| 282 VideoRendererGui.dispose(); |
282 } | 283 } |
283 | 284 |
284 // CallFragment.OnCallEvents interface implementation. | 285 // CallFragment.OnCallEvents interface implementation. |
285 @Override | 286 @Override |
286 public void onCallHangUp() { | 287 public void onCallHangUp() { |
287 disconnect(); | 288 disconnect(); |
288 } | 289 } |
289 | 290 |
290 @Override | 291 @Override |
291 public void onCameraSwitch() { | 292 public void onCameraSwitch() { |
(...skipping 346 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
638 } | 639 } |
639 } | 640 } |
640 }); | 641 }); |
641 } | 642 } |
642 | 643 |
643 @Override | 644 @Override |
644 public void onPeerConnectionError(final String description) { | 645 public void onPeerConnectionError(final String description) { |
645 reportError(description); | 646 reportError(description); |
646 } | 647 } |
647 } | 648 } |
OLD | NEW |