summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--res/drawable-xlarge-mdpi/ic_time_lapse_holo_dark.pngbin0 -> 2153 bytes
-rw-r--r--res/drawable-xlarge-mdpi/ic_viewfinder_coloreffect.pngbin0 -> 1387 bytes
-rw-r--r--res/drawable-xlarge-mdpi/ic_viewfinder_flash_auto.pngbin0 -> 2014 bytes
-rw-r--r--res/drawable-xlarge-mdpi/ic_viewfinder_flash_off.pngbin0 -> 2227 bytes
-rw-r--r--res/drawable-xlarge-mdpi/ic_viewfinder_flash_on.pngbin0 -> 1651 bytes
-rw-r--r--res/drawable-xlarge-mdpi/ic_viewfinder_scene_mode.pngbin0 -> 1366 bytes
-rw-r--r--res/drawable-xlarge-mdpi/ic_viewfinder_settings.pngbin0 -> 1929 bytes
-rw-r--r--res/drawable-xlarge-mdpi/ic_viewfinder_video_quality_high.pngbin0 -> 1464 bytes
-rw-r--r--res/drawable-xlarge-mdpi/ic_viewfinder_video_quality_low.pngbin0 -> 1318 bytes
-rw-r--r--res/drawable-xlarge-mdpi/ic_viewfinder_video_quality_youtube.pngbin0 -> 2289 bytes
-rw-r--r--res/drawable-xlarge-mdpi/ic_viewfinder_wb_auto.pngbin0 -> 1891 bytes
-rw-r--r--res/drawable-xlarge-mdpi/ic_viewfinder_wb_daylight.pngbin0 -> 1741 bytes
-rw-r--r--res/drawable-xlarge-mdpi/ic_viewfinder_wb_fluorescent.pngbin0 -> 1639 bytes
-rw-r--r--res/drawable-xlarge-mdpi/ic_viewfinder_wb_incandescent.pngbin0 -> 1721 bytes
-rw-r--r--src/com/android/camera/ui/IndicatorWheel.java14
15 files changed, 10 insertions, 4 deletions
diff --git a/res/drawable-xlarge-mdpi/ic_time_lapse_holo_dark.png b/res/drawable-xlarge-mdpi/ic_time_lapse_holo_dark.png
new file mode 100644
index 0000000..2bb9c57
--- /dev/null
+++ b/res/drawable-xlarge-mdpi/ic_time_lapse_holo_dark.png
Binary files differ
diff --git a/res/drawable-xlarge-mdpi/ic_viewfinder_coloreffect.png b/res/drawable-xlarge-mdpi/ic_viewfinder_coloreffect.png
new file mode 100644
index 0000000..738ef05
--- /dev/null
+++ b/res/drawable-xlarge-mdpi/ic_viewfinder_coloreffect.png
Binary files differ
diff --git a/res/drawable-xlarge-mdpi/ic_viewfinder_flash_auto.png b/res/drawable-xlarge-mdpi/ic_viewfinder_flash_auto.png
new file mode 100644
index 0000000..7b1cb6c
--- /dev/null
+++ b/res/drawable-xlarge-mdpi/ic_viewfinder_flash_auto.png
Binary files differ
diff --git a/res/drawable-xlarge-mdpi/ic_viewfinder_flash_off.png b/res/drawable-xlarge-mdpi/ic_viewfinder_flash_off.png
new file mode 100644
index 0000000..ecf8220
--- /dev/null
+++ b/res/drawable-xlarge-mdpi/ic_viewfinder_flash_off.png
Binary files differ
diff --git a/res/drawable-xlarge-mdpi/ic_viewfinder_flash_on.png b/res/drawable-xlarge-mdpi/ic_viewfinder_flash_on.png
new file mode 100644
index 0000000..c01a882
--- /dev/null
+++ b/res/drawable-xlarge-mdpi/ic_viewfinder_flash_on.png
Binary files differ
diff --git a/res/drawable-xlarge-mdpi/ic_viewfinder_scene_mode.png b/res/drawable-xlarge-mdpi/ic_viewfinder_scene_mode.png
new file mode 100644
index 0000000..d11b057
--- /dev/null
+++ b/res/drawable-xlarge-mdpi/ic_viewfinder_scene_mode.png
Binary files differ
diff --git a/res/drawable-xlarge-mdpi/ic_viewfinder_settings.png b/res/drawable-xlarge-mdpi/ic_viewfinder_settings.png
new file mode 100644
index 0000000..3093ed7
--- /dev/null
+++ b/res/drawable-xlarge-mdpi/ic_viewfinder_settings.png
Binary files differ
diff --git a/res/drawable-xlarge-mdpi/ic_viewfinder_video_quality_high.png b/res/drawable-xlarge-mdpi/ic_viewfinder_video_quality_high.png
new file mode 100644
index 0000000..432cb4a
--- /dev/null
+++ b/res/drawable-xlarge-mdpi/ic_viewfinder_video_quality_high.png
Binary files differ
diff --git a/res/drawable-xlarge-mdpi/ic_viewfinder_video_quality_low.png b/res/drawable-xlarge-mdpi/ic_viewfinder_video_quality_low.png
new file mode 100644
index 0000000..45ada04
--- /dev/null
+++ b/res/drawable-xlarge-mdpi/ic_viewfinder_video_quality_low.png
Binary files differ
diff --git a/res/drawable-xlarge-mdpi/ic_viewfinder_video_quality_youtube.png b/res/drawable-xlarge-mdpi/ic_viewfinder_video_quality_youtube.png
new file mode 100644
index 0000000..296ee75
--- /dev/null
+++ b/res/drawable-xlarge-mdpi/ic_viewfinder_video_quality_youtube.png
Binary files differ
diff --git a/res/drawable-xlarge-mdpi/ic_viewfinder_wb_auto.png b/res/drawable-xlarge-mdpi/ic_viewfinder_wb_auto.png
new file mode 100644
index 0000000..cf8ddb4
--- /dev/null
+++ b/res/drawable-xlarge-mdpi/ic_viewfinder_wb_auto.png
Binary files differ
diff --git a/res/drawable-xlarge-mdpi/ic_viewfinder_wb_daylight.png b/res/drawable-xlarge-mdpi/ic_viewfinder_wb_daylight.png
new file mode 100644
index 0000000..6472b09
--- /dev/null
+++ b/res/drawable-xlarge-mdpi/ic_viewfinder_wb_daylight.png
Binary files differ
diff --git a/res/drawable-xlarge-mdpi/ic_viewfinder_wb_fluorescent.png b/res/drawable-xlarge-mdpi/ic_viewfinder_wb_fluorescent.png
new file mode 100644
index 0000000..509f436
--- /dev/null
+++ b/res/drawable-xlarge-mdpi/ic_viewfinder_wb_fluorescent.png
Binary files differ
diff --git a/res/drawable-xlarge-mdpi/ic_viewfinder_wb_incandescent.png b/res/drawable-xlarge-mdpi/ic_viewfinder_wb_incandescent.png
new file mode 100644
index 0000000..1ef4d2e
--- /dev/null
+++ b/res/drawable-xlarge-mdpi/ic_viewfinder_wb_incandescent.png
Binary files differ
diff --git a/src/com/android/camera/ui/IndicatorWheel.java b/src/com/android/camera/ui/IndicatorWheel.java
index 7221a9f..42090a5 100644
--- a/src/com/android/camera/ui/IndicatorWheel.java
+++ b/src/com/android/camera/ui/IndicatorWheel.java
@@ -277,6 +277,7 @@ public class IndicatorWheel extends ViewGroup {
if (key.equals(indicator.getKey())) {
indicator.overrideSettings(value);
setEnabled(indicator, (value == null));
+ break;
}
}
}
@@ -303,10 +304,15 @@ public class IndicatorWheel extends ViewGroup {
}
private void setEnabled(ImageView view, boolean enabled) {
- if (enabled) {
- view.clearColorFilter();
- } else {
- view.setColorFilter(DISABLED_COLOR);
+ // Don't do anything if state is not changed so not to interfere with
+ // the "highlight" state.
+ if (view.isEnabled() ^ enabled) {
+ view.setEnabled(enabled);
+ if (enabled) {
+ view.clearColorFilter();
+ } else {
+ view.setColorFilter(DISABLED_COLOR);
+ }
}
}
}