From 1a18632c11d3f4593547e9afe309cad1f4ea7204 Mon Sep 17 00:00:00 2001 From: Jack Yoo Date: Mon, 22 Feb 2016 17:40:11 -0800 Subject: SnapdragonCamera: Adjusting view initialization Instead of removing and adding the entire root view, changing only core surface view on module change. Change-Id: I5c39cf23b2a58280f4e4e8484865bbed0b12e1cf CRs-Fixed: 979254 --- res/layout/video_module.xml | 3 +-- src/com/android/camera/CameraActivity.java | 11 +++-------- src/com/android/camera/PhotoModule.java | 6 ++++++ src/com/android/camera/PhotoUI.java | 20 ++++++++++++++++---- src/com/android/camera/VideoModule.java | 5 +++++ src/com/android/camera/VideoUI.java | 22 +++++++++++++--------- 6 files changed, 44 insertions(+), 23 deletions(-) diff --git a/res/layout/video_module.xml b/res/layout/video_module.xml index 75487d49e..561539e08 100644 --- a/res/layout/video_module.xml +++ b/res/layout/video_module.xml @@ -26,8 +26,7 @@ + android:layout_height="match_parent" />