diff options
author | Jack Yoo <jyoo@codeaurora.org> | 2016-01-27 17:09:15 -0800 |
---|---|---|
committer | Gerrit Code Review <gerrit@cyanogenmod.org> | 2016-05-26 09:48:45 -0700 |
commit | 02fa4483a6536b19ee49a5f98d30a3fa03eae72d (patch) | |
tree | c0afa86098ffd2f7f1452de45d092141cd66157a /res | |
parent | 94574eb97d43e17d0f2a115370f0f767f4c6049c (diff) | |
download | android_packages_apps_Snap-02fa4483a6536b19ee49a5f98d30a3fa03eae72d.tar.gz android_packages_apps_Snap-02fa4483a6536b19ee49a5f98d30a3fa03eae72d.tar.bz2 android_packages_apps_Snap-02fa4483a6536b19ee49a5f98d30a3fa03eae72d.zip |
SnapdragonCamera: Fix the memory leak on view.
Keep using modules instead of creating.
Don't remove the view without cleaning it.
Change-Id: I260a660cac3d770f7d02dfdc1881e15490da66a0
CRs-Fixed: 958510
Diffstat (limited to 'res')
-rw-r--r-- | res/layout/camera.xml | 22 |
1 files changed, 18 insertions, 4 deletions
diff --git a/res/layout/camera.xml b/res/layout/camera.xml index 9a3a01a86..98b3a1013 100644 --- a/res/layout/camera.xml +++ b/res/layout/camera.xml @@ -13,9 +13,23 @@ See the License for the specific language governing permissions and limitations under the License. --> -<com.android.camera.ui.CameraRootView - xmlns:android="http://schemas.android.com/apk/res/android" - android:id="@+id/camera_app_root" +<com.android.camera.ui.CameraRootFrame xmlns:android="http://schemas.android.com/apk/res/android" + android:id="@+id/camera_root_frame" android:layout_width="match_parent" android:layout_height="match_parent" > -</com.android.camera.ui.CameraRootView> + <com.android.camera.ui.CameraRootView + android:id="@+id/camera_photo_root" + android:layout_width="match_parent" + android:layout_height="match_parent" > + </com.android.camera.ui.CameraRootView> + <com.android.camera.ui.CameraRootView + android:id="@+id/camera_video_root" + android:layout_width="match_parent" + android:layout_height="match_parent" > + </com.android.camera.ui.CameraRootView> + <com.android.camera.ui.CameraRootView + android:id="@+id/camera_pano_root" + android:layout_width="match_parent" + android:layout_height="match_parent" > + </com.android.camera.ui.CameraRootView> +</com.android.camera.ui.CameraRootFrame> |