From 96c7df0073613b5945322b3be575a597c3f38a35 Mon Sep 17 00:00:00 2001 From: Jay Wang Date: Thu, 14 Apr 2016 17:33:30 -0700 Subject: SnapdragonCamera: Fix viewfinder flashing issue in camcorder mode The preview cover is removed before the preview frame is generated and causes the homescreen shows up for a short duration. To resolve the issue, show the preview cover by default until the first preview frame is generated by camera framework. Change-Id: I1e193b64689b8b51eaa0e3891974405536869efd CRs-Fixed: 1003977 --- res/layout/video_module.xml | 3 +-- src/com/android/camera/VideoUI.java | 2 -- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/res/layout/video_module.xml b/res/layout/video_module.xml index 267cc2c37..9caac3af9 100644 --- a/res/layout/video_module.xml +++ b/res/layout/video_module.xml @@ -33,8 +33,7 @@ android:id="@+id/preview_cover" android:layout_width="match_parent" android:layout_height="match_parent" - android:background="@android:color/black" - android:visibility="gone" /> + android:background="@android:color/black" />