summaryrefslogtreecommitdiffstats
path: root/src/com/android/camera/VideoUI.java
diff options
context:
space:
mode:
authorByunghun Jeon <bjeon@codeaurora.org>2015-08-07 14:53:59 -0700
committerGerrit - the friendly Code Review server <code-review@localhost>2015-08-07 14:55:40 -0700
commit8fce47a5fb0277b3763b94a1fd23ea499d35e4b1 (patch)
treef90514b0045e03c574bd505265fc837fc8ddb965 /src/com/android/camera/VideoUI.java
parentf88dd95428f256f3909c288455d4f6d19092c459 (diff)
downloadandroid_packages_apps_Snap-8fce47a5fb0277b3763b94a1fd23ea499d35e4b1.tar.gz
android_packages_apps_Snap-8fce47a5fb0277b3763b94a1fd23ea499d35e4b1.tar.bz2
android_packages_apps_Snap-8fce47a5fb0277b3763b94a1fd23ea499d35e4b1.zip
SnapdragonCamera: Set navigation bar according to flag
Set navigation bar according to flag and set it to show by default Change-Id: I5ddb9d5f8150d7fd1d182bacb25cd02651a2db5b
Diffstat (limited to 'src/com/android/camera/VideoUI.java')
-rw-r--r--src/com/android/camera/VideoUI.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/com/android/camera/VideoUI.java b/src/com/android/camera/VideoUI.java
index 82d6e2987..5f2c7cd08 100644
--- a/src/com/android/camera/VideoUI.java
+++ b/src/com/android/camera/VideoUI.java
@@ -386,14 +386,14 @@ public class VideoUI implements PieRenderer.PieListener,
if (width > height) {
if(Math.max(width, height * mAspectRatio) > width) {
scaledTextureWidth = width;
- scaledTextureHeight = width / mAspectRatio;
+ scaledTextureHeight = height;
} else {
scaledTextureWidth = height * mAspectRatio;
scaledTextureHeight = height;
}
} else {
if(Math.max(height, width * mAspectRatio) > height) {
- scaledTextureWidth = height / mAspectRatio;
+ scaledTextureWidth = width;
scaledTextureHeight = height;
} else {
scaledTextureWidth = width;