<string name="flash_on_desc">Flash on</string>
<!-- Accessibility text for HDR+ flash toggle button states [CHAR_LIMIT=NONE] -->
- <string name="hdr_plus_flash_off_desc">HDR+ torch off</string>
- <string name="hdr_plus_flash_auto_desc">HDR+ torch auto</string>
- <string name="hdr_plus_flash_on_desc">HDR+ torch on</string>
+ <string name="hdr_plus_flash_off_desc">HDR+ flash off</string>
+ <string name="hdr_plus_flash_auto_desc">HDR+ flash auto</string>
+ <string name="hdr_plus_flash_on_desc">HDR+ flash on</string>
<!-- Accessibility text for vide torch (flash) toggle button states [CHAR_LIMIT=NONE] -->
<string name="torch_on_desc">Torch on</string>
public static final int BUTTON_FLASH = 0;
public static final int BUTTON_TORCH = 1;
- public static final int BUTTON_HDR_PLUS_TORCH = 2;
+ public static final int BUTTON_HDR_PLUS_FLASH = 2;
public static final int BUTTON_CAMERA = 3;
public static final int BUTTON_HDR_PLUS = 4;
public static final int BUTTON_HDR = 5;
}
case SettingsManager.SETTING_HDR_PLUS_FLASH_MODE: {
index = mSettingsManager.getStringValueIndex(id);
- button = getButtonOrError(BUTTON_HDR_PLUS_TORCH);
+ button = getButtonOrError(BUTTON_HDR_PLUS_FLASH);
break;
}
case SettingsManager.SETTING_CAMERA_ID: {
throw new IllegalStateException("Torch button could not be found.");
}
return mButtonFlash;
- case BUTTON_HDR_PLUS_TORCH:
+ case BUTTON_HDR_PLUS_FLASH:
if (mButtonFlash == null) {
throw new IllegalStateException("Hdr plus torch button could not be found.");
}
case BUTTON_TORCH:
initializeTorchButton(button, cb, R.array.video_flashmode_icons);
break;
- case BUTTON_HDR_PLUS_TORCH:
- initializeHdrPlusTorchButton(button, cb, R.array.camera_flashmode_icons);
+ case BUTTON_HDR_PLUS_FLASH:
+ initializeHdrPlusFlashButton(button, cb, R.array.camera_flashmode_icons);
break;
case BUTTON_CAMERA:
initializeCameraButton(button, cb, R.array.camera_id_icons);
}
/**
- * Initialize hdr plus torch button
+ * Initialize hdr plus flash button
*/
- private void initializeHdrPlusTorchButton(MultiToggleImageButton button,
+ private void initializeHdrPlusFlashButton(MultiToggleImageButton button,
final ButtonCallback cb, int resIdImages) {
if (resIdImages > 0) {
/**
* Updates the preview matrix without altering it. Assumes a fullscreen
* aspect ratio.
- *
+ *
* @param matrix
*/
public void updatePreviewTransformFullscreen(Matrix matrix) {
buttonManager.initializeButton(ButtonManager.BUTTON_TORCH,
bottomBarSpec.flashCallback);
} else if (bottomBarSpec.enableHdrPlusFlash) {
- buttonManager.initializeButton(ButtonManager.BUTTON_HDR_PLUS_TORCH,
+ buttonManager.initializeButton(ButtonManager.BUTTON_HDR_PLUS_FLASH,
bottomBarSpec.flashCallback);
} else {
buttonManager.disableButton(ButtonManager.BUTTON_FLASH);