From 22a695f8ca31dc2899e7206d68316c7e6d960657 Mon Sep 17 00:00:00 2001 From: Owen Lin Date: Mon, 19 Oct 2009 02:46:30 -0700 Subject: Fix the bug that one-item only settings still shown on menu. Change-Id: I6c57ed929f74d9f170b3e07c4db54134b2869e78 http://b/issue?id=2196476 --- src/com/android/camera/CameraSettings.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/com/android/camera/CameraSettings.java b/src/com/android/camera/CameraSettings.java index 0f28902..e7d7d0e 100644 --- a/src/com/android/camera/CameraSettings.java +++ b/src/com/android/camera/CameraSettings.java @@ -189,7 +189,7 @@ public class CameraSettings { // Remove the preference if the parameter is not supported or there is // only one options for the settings. - if (supported == null || allEntries.length <= 1) { + if (supported == null || supported.size() <= 1) { removePreference(screen, pref); return; } -- cgit v1.1