summaryrefslogtreecommitdiffstats
path: root/src/com/android/camera/ui/CameraSwitcher.java
diff options
context:
space:
mode:
authorSascha Haeberling <haeberling@google.com>2013-07-23 18:30:17 -0700
committerSascha Haeberling <haeberling@google.com>2013-07-24 12:18:28 -0700
commit77fb852da18c6ee8ba1f1037f385319eb47bdce6 (patch)
tree18914348de82a7c9dc86f2c31360bdc186326965 /src/com/android/camera/ui/CameraSwitcher.java
parent6a8e8a1a0f3e8e62cd350733e275047475380d6b (diff)
downloadandroid_packages_apps_Snap-77fb852da18c6ee8ba1f1037f385319eb47bdce6.tar.gz
android_packages_apps_Snap-77fb852da18c6ee8ba1f1037f385319eb47bdce6.tar.bz2
android_packages_apps_Snap-77fb852da18c6ee8ba1f1037f385319eb47bdce6.zip
Refocus integration phase 1.
Bug: 9966846 Change-Id: I591ce1ee878a9f4d6bd63eddef6e79608ffd69ec
Diffstat (limited to 'src/com/android/camera/ui/CameraSwitcher.java')
-rw-r--r--src/com/android/camera/ui/CameraSwitcher.java8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/com/android/camera/ui/CameraSwitcher.java b/src/com/android/camera/ui/CameraSwitcher.java
index 90d88d29a..6e4321571 100644
--- a/src/com/android/camera/ui/CameraSwitcher.java
+++ b/src/com/android/camera/ui/CameraSwitcher.java
@@ -49,10 +49,12 @@ public class CameraSwitcher extends RotateImageView
public static final int PHOTO_MODULE_INDEX = 0;
public static final int VIDEO_MODULE_INDEX = 1;
public static final int LIGHTCYCLE_MODULE_INDEX = 2;
+ public static final int REFOCUS_MODULE_INDEX = 3;
private static final int[] DRAW_IDS = {
R.drawable.ic_switch_camera,
R.drawable.ic_switch_video,
- R.drawable.ic_switch_photosphere
+ R.drawable.ic_switch_photosphere,
+ R.drawable.ic_switch_refocus
};
public interface CameraSwitchListener {
public void onCameraSelected(int i);
@@ -186,6 +188,10 @@ public class CameraSwitcher extends RotateImageView
item.setContentDescription(getContext().getResources().getString(
R.string.accessibility_switch_to_new_panorama));
break;
+ case R.drawable.ic_switch_refocus:
+ item.setContentDescription(getContext().getResources().getString(
+ R.string.accessibility_switch_to_refocus));
+ break;
default:
break;
}