summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/com/android/camera/ui/SecondLevelIndicatorControlBar.java1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/com/android/camera/ui/SecondLevelIndicatorControlBar.java b/src/com/android/camera/ui/SecondLevelIndicatorControlBar.java
index b725002..4b87bdc 100644
--- a/src/com/android/camera/ui/SecondLevelIndicatorControlBar.java
+++ b/src/com/android/camera/ui/SecondLevelIndicatorControlBar.java
@@ -69,6 +69,7 @@ public class SecondLevelIndicatorControlBar extends IndicatorControl implements
double x = (double) event.getX();
double y = (double) event.getY();
int height = getHeight();
+ if (height == 0) return false; // the event is sent before onMeasure()
if (x > getWidth()) x = getWidth();
if (y >= height) y = height - 1;