diff options
Diffstat (limited to 'src/com/android/camera/ui/ModuleSwitcher.java')
-rw-r--r-- | src/com/android/camera/ui/ModuleSwitcher.java | 16 |
1 files changed, 11 insertions, 5 deletions
diff --git a/src/com/android/camera/ui/ModuleSwitcher.java b/src/com/android/camera/ui/ModuleSwitcher.java index d96775d14..058e64d7b 100644 --- a/src/com/android/camera/ui/ModuleSwitcher.java +++ b/src/com/android/camera/ui/ModuleSwitcher.java @@ -51,10 +51,11 @@ public class ModuleSwitcher extends RotateImageView public static final int PHOTO_MODULE_INDEX = 0; public static final int VIDEO_MODULE_INDEX = 1; public static final int WIDE_ANGLE_PANO_MODULE_INDEX = 2; - public static final int LIGHTCYCLE_MODULE_INDEX = 3; - public static final int GCAM_MODULE_INDEX = 4; - public static final int CAPTURE_MODULE_INDEX = 5; - public static final int PANOCAPTURE_MODULE_INDEX = 6; + public static final int QR_MODULE_INDEX = 3; + public static final int LIGHTCYCLE_MODULE_INDEX = 4; + public static final int GCAM_MODULE_INDEX = 5; + public static final int CAPTURE_MODULE_INDEX = 6; + public static final int PANOCAPTURE_MODULE_INDEX = 7; private boolean mTouchEnabled = true; private boolean mIsVisible = true; @@ -63,6 +64,7 @@ public class ModuleSwitcher extends RotateImageView R.drawable.ic_switch_camera, R.drawable.ic_switch_video, R.drawable.ic_switch_pan, + R.drawable.ic_cam_switcher_qr, R.drawable.ic_switch_photosphere, R.drawable.ic_switch_gcam, }; @@ -102,7 +104,7 @@ public class ModuleSwitcher extends RotateImageView private void init(Context context) { mItemSize = context.getResources().getDimensionPixelSize(R.dimen.switcher_size); - mIndicator = context.getResources().getDrawable(R.drawable.ic_switcher_menu_indicator); + mIndicator = context.getResources().getDrawable(R.color.transparent); initializeDrawables(context); } @@ -231,6 +233,10 @@ public class ModuleSwitcher extends RotateImageView item.setContentDescription(getContext().getResources().getString( R.string.accessibility_switch_to_panorama)); break; + case R.drawable.ic_cam_switcher_qr: + item.setContentDescription(getContext().getResources().getString( + R.string.accessibility_switch_to_qr)); + break; case R.drawable.ic_switch_photosphere: item.setContentDescription(getContext().getResources().getString( R.string.accessibility_switch_to_photo_sphere)); |