summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/com/android/camera/VideoMenu.java3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/com/android/camera/VideoMenu.java b/src/com/android/camera/VideoMenu.java
index 1ac3677..750fc70 100644
--- a/src/com/android/camera/VideoMenu.java
+++ b/src/com/android/camera/VideoMenu.java
@@ -435,6 +435,9 @@ public class VideoMenu extends MenuController
int resid = -1;
int index = pref.findIndexOfValue(pref.getValue());
if (!pref.getUseSingleIcon() && iconIds != null) {
+ if (index == -1) {
+ return;
+ }
// Each entry has a corresponding icon.
index = index % iconIds.length;
resid = iconIds[index];