From e2fb5dc7798cf677f6a66b6a697c4a011b0a101f Mon Sep 17 00:00:00 2001 From: Likai Ding Date: Mon, 26 Jan 2015 10:07:21 +0800 Subject: SnapdragonCamera: fix portrait orientation Fix camera activity to portrait, so there is no delay when rotation occurs. Main changes are: 1. RotateLayout now supports padding and dynamically added child. 2. Camera controls and gesture detetion are now orientation-aware. 3. Toasts are replaced with RotateTextToast. 4. Obselete layout files are removed. Change-Id: I338849bd7fb84b847eb357f771a24a5cc09bf6fa --- src/com/android/camera/MenuController.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/com/android/camera/MenuController.java') diff --git a/src/com/android/camera/MenuController.java b/src/com/android/camera/MenuController.java index 79223e492..97240cb18 100644 --- a/src/com/android/camera/MenuController.java +++ b/src/com/android/camera/MenuController.java @@ -104,8 +104,7 @@ public class MenuController { return; } } - ImageView iv = (ImageView) ((FrameLayout) switcher).getChildAt(0); - iv.setImageResource(pref.getLargeIconIds()[index]); + ((ImageView) switcher).setImageResource(pref.getLargeIconIds()[index]); } -- cgit v1.2.3