summaryrefslogtreecommitdiffstats
path: root/src/com/android/camera/ui
diff options
context:
space:
mode:
authorJay Wang <jaywang@codeaurora.org>2015-05-05 10:37:52 -0700
committerByunghun Jeon <bjeon@codeaurora.org>2015-09-16 17:15:18 -0700
commit59b05fd1d75943f037aec41def16cdceb6443ecf (patch)
treebdc41665161e398f9992e7baff76243e1c1f3f9e /src/com/android/camera/ui
parent465c11e451e18b7f3e8109fdbbc56b866f7f8a56 (diff)
downloadandroid_packages_apps_Snap-59b05fd1d75943f037aec41def16cdceb6443ecf.tar.gz
android_packages_apps_Snap-59b05fd1d75943f037aec41def16cdceb6443ecf.tar.bz2
android_packages_apps_Snap-59b05fd1d75943f037aec41def16cdceb6443ecf.zip
SnapdragonCamera: Use floating components during video record.
During recording, there are only 2 widgets on UI. Directly attaching them to window manager and making main UI layer fully transparent can reduce power consumption. Change-Id: I8c4f4768ab91d50fc72080f0f6d7316ee2e60ef4
Diffstat (limited to 'src/com/android/camera/ui')
-rw-r--r--src/com/android/camera/ui/FilmStripView.java8
1 files changed, 0 insertions, 8 deletions
diff --git a/src/com/android/camera/ui/FilmStripView.java b/src/com/android/camera/ui/FilmStripView.java
index 01469baeb..d254acff3 100644
--- a/src/com/android/camera/ui/FilmStripView.java
+++ b/src/com/android/camera/ui/FilmStripView.java
@@ -685,7 +685,6 @@ public class FilmStripView extends ViewGroup implements BottomControlsListener {
}
private void init(CameraActivity cameraActivity) {
- setWillNotDraw(false);
mActivity = cameraActivity;
mScale = 1.0f;
mDataIdOnUserScrolling = 0;
@@ -1423,13 +1422,6 @@ public class FilmStripView extends ViewGroup implements BottomControlsListener {
}
@Override
- public void onDraw(Canvas c) {
- // TODO: remove layoutViewItems() here.
- layoutViewItems(false);
- super.onDraw(c);
- }
-
- @Override
protected void onLayout(boolean changed, int l, int t, int r, int b) {
mDrawArea.left = l;
mDrawArea.top = t;