diff options
author | Tyler Gunn <tgunn@google.com> | 2014-07-29 11:52:22 -0700 |
---|---|---|
committer | Tyler Gunn <tgunn@google.com> | 2014-07-29 11:52:22 -0700 |
commit | 15a8e3cb2c01b59b5328a74e6c46144843103205 (patch) | |
tree | 5be1de57e7633bb6c238b55084422f5f0f3a9df9 /src/com/android/incallui/CallList.java | |
parent | d57f72d3e1b38ee982ab486326165613e95fb216 (diff) | |
download | packages_apps_InCallUI-15a8e3cb2c01b59b5328a74e6c46144843103205.tar.gz packages_apps_InCallUI-15a8e3cb2c01b59b5328a74e6c46144843103205.tar.bz2 packages_apps_InCallUI-15a8e3cb2c01b59b5328a74e6c46144843103205.zip |
Various changes.
1. Add InCallCameraManager to track active camera and manage camera
capabilities.
2. Use new camera manager in CallButtonPresenter instead of directly
accessing camera.
3. Implemented new camera setup flow between incall and telephony.
4. Landscape video call support (actively rotating while video is running
crashes InCall at the moment, but you can start it in portrait or
landscape fine). Includes ensuring layout works properly with RTL
locales.
5. Added progress spinner to CallCardFragment, useful to show when an
upgrade to video is pending.
Bug: 16012946
Change-Id: Iff33422eec3a92d8cbeb217f5be2f1c9c5f3e98d
Diffstat (limited to 'src/com/android/incallui/CallList.java')
-rw-r--r-- | src/com/android/incallui/CallList.java | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/com/android/incallui/CallList.java b/src/com/android/incallui/CallList.java index e4085f61..b59b0a6a 100644 --- a/src/com/android/incallui/CallList.java +++ b/src/com/android/incallui/CallList.java @@ -445,6 +445,19 @@ public class CallList implements InCallPhoneListener { } /** + * Notifies all video calls of a change in device orientation. + * + * @param rotation The new rotation angle (in degrees). + */ + public void notifyCallsOfDeviceRotation(int rotation) { + for (Call call : mCallById.values()) { + if (call.getVideoCall() != null) { + call.getVideoCall().setDeviceOrientation(rotation); + } + } + } + + /** * Handles the timeout for destroying disconnected calls. */ private Handler mHandler = new Handler() { |